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

Fixes mem leak


diffs (15 lines):

diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c
--- a/geom/monetdb5/geom.c
+++ b/geom/monetdb5/geom.c
@@ -313,8 +313,11 @@ wkbCollect (wkb **out, wkb * const *a, w
 
        if ((*out = geos2wkb(collection)) == NULL)
                err = createException(MAL, "geom.Collect", SQLSTATE(38000) 
"Geos operation geos2wkb failed");
+
        GEOSGeom_destroy(ga);
        GEOSGeom_destroy(gb);
+       GEOSGeom_destroy(collection);
+
        return err;
 }
 /**
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to