Changeset: 4e5d987edc8a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4e5d987edc8a
Modified Files:
pathfinder/runtime/shredder.mx
Branch: default
Log Message:
Fix small memory leak in XML shredder (256 byte per document).
diffs (14 lines):
diff -r 17879d9a552c -r 4e5d987edc8a pathfinder/runtime/shredder.mx
--- a/pathfinder/runtime/shredder.mx Mon Aug 02 21:06:43 2010 +0200
+++ b/pathfinder/runtime/shredder.mx Tue Oct 05 22:24:36 2010 +0200
@@ -1527,6 +1527,10 @@
GDKerror("shredder_parse: libxml2 could not initialize a parser.\n");
return GDK_FAIL;
}
+ /* Avoid memory leak */
+ if (xmlCtx->sax)
+ xmlFree (xmlCtx->sax);
+
xmlCtx->sax = &shredder;
xmlCtx->userData = shredCtx; /* set the SHREDCTX() value */
shredCtx->started = 0; /* used to detext empty xml docs */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list