Changeset: 903a859aa22b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=903a859aa22b
Modified Files:
monetdb5/extras/pyapi/pyapi.c
Branch: pyapi
Log Message:
Fix memory leak.
diffs (11 lines):
diff --git a/monetdb5/extras/pyapi/pyapi.c b/monetdb5/extras/pyapi/pyapi.c
--- a/monetdb5/extras/pyapi/pyapi.c
+++ b/monetdb5/extras/pyapi/pyapi.c
@@ -862,6 +862,7 @@ str PyAPIeval(MalBlkPtr mb, MalStkPtr st
}
}
pResult = PyDict_CheckForConversion(pResult, pci->retc, retnames,
&msg);
+ if (retnames != NULL) GDKfree(retnames);
} else {
// Now we need to do some error checking on the result object,
because the result object has to have the correct type/size
// We will also do some converting of result objects to a common
type (such as scalar -> [[scalar]])
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list