Opened 13 years ago

Closed 13 years ago

#3591 closed defect (fixed)

[PATCH] Fix memory leaks in mapogcsos.c

Reported by: rouault Owned by: assefa
Priority: normal Milestone:
Component: SOS Server Version: unspecified
Severity: normal Keywords:
Cc: assefa

Description

The attached patch fixes all memory leaks found when running sos_getobs_time_filter_foi.xml under valgrind

valgrind --leak-check=full mapserv QUERY_STRING="map=sos.map&service=SOS&version=1.0.0&request=GetObservation&responseFormat=text/xml; subtype=\"om/1.0.0\"&offering=Water&observedproperty=WaterQuality&result=<Filter><PropertyIsGreaterThan><PropertyName>value</PropertyName><Literal>89.9</Literal></PropertyIsGreaterThan></Filter>&eventTime=<gml:TimePeriod><gml:beginPosition>1990</gml:beginPosition><gml:endPosition>2003</gml:endPosition></gml:TimePeriod>&featureOfInterest=<gml:Envelope><gml:lowerCorner srsName="EPSG:4326">-76 44</gml:lowerCorner><gml:upperCorner srsName="EPSG:4326">-64 47</gml:upperCorner></gml:Envelope>"

I let you review as there's quite a number of changes and I don't know that code.

Attachments (1)

mapogcsos_memoryleak_fixes.patch (5.2 KB ) - added by rouault 13 years ago.

Download all attachments as: .zip

Change History (2)

by rouault, 13 years ago

comment:1 by assefa, 13 years ago

Resolution: fixed
Status: newclosed

merci. committed in r10683.

Note: See TracTickets for help on using tickets.