Changeset: d03f248d9bb5 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d03f248d9bb5
Modified Files:
        geom/monetdb5/geom.c
Branch: default
Log Message:

Fixes mem leak


diffs (12 lines):

diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c
--- a/geom/monetdb5/geom.c
+++ b/geom/monetdb5/geom.c
@@ -3480,6 +3480,8 @@ wkbMakeLineAggrArray(wkb **outWKB, wkb *
                msg = createException(MAL, "geom.MakeLine", SQLSTATE(38000) 
"Geos operation GEOSGeom_createLineString failed");
        }
        *outWKB = geos2wkb(outGeometry);
+       GEOSGeom_destroy(outGeometry);
+       GEOSCoordSeq_destroy(outCoordSeq);
        return msg;
 }
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to