Changeset: 6853052eafe2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6853052eafe2
Modified Files:
geom/monetdb5/geomBulk.c
Branch: default
Log Message:
Memory leak.
diffs (21 lines):
diff --git a/geom/monetdb5/geomBulk.c b/geom/monetdb5/geomBulk.c
--- a/geom/monetdb5/geomBulk.c
+++ b/geom/monetdb5/geomBulk.c
@@ -1496,13 +1496,15 @@ str
wkbCoordinateFromWKB_bat(bat *outBAT_id, bat *inBAT_id, int *coordinateIdx)
{
str err = NULL;
- int inBAT_mbr_id = 0; //the id of the bat with the mbrs
+ bat inBAT_mbr_id = 0; //the id of the bat with the mbrs
if ((err = wkbMBR_bat(&inBAT_mbr_id, inBAT_id)) != MAL_SUCCEED) {
return err;
}
//call the bulk version of wkbCoordinateFromMBR
- return wkbCoordinateFromMBR_bat(outBAT_id, &inBAT_mbr_id,
coordinateIdx);
+ err = wkbCoordinateFromMBR_bat(outBAT_id, &inBAT_mbr_id, coordinateIdx);
+ BBPrelease(inBAT_mbr_id);
+ return err;
}
str
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]