Changeset: a2d3ceb2e20b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a2d3ceb2e20b
Modified Files:
geom/monetdb5/geom.c
Branch: default
Log Message:
Fixes mem leak
diffs (14 lines):
diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c
--- a/geom/monetdb5/geom.c
+++ b/geom/monetdb5/geom.c
@@ -3434,8 +3434,10 @@ wkbExtractPointToCoordSeq(GEOSCoordSeq *
GEOSCoordSeq_getY(inCoordSeq, 0, &y);
if (!GEOSCoordSeq_setX(*outCoordSeq, index, x) ||
!GEOSCoordSeq_setY(*outCoordSeq, index, y)) {
+ GEOSGeom_destroy(inGeometry);
throw(MAL, "geom.MakeLine", SQLSTATE(38000) "Geos operation
GEOSCoordSeq_set[XY] failed");
}
+ GEOSGeom_destroy(inGeometry);
return msg;
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]