Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9208/src/gdk
Modified Files:
gdk_bat.mx
Log Message:
fixed leak of bat filenames
Index: gdk_bat.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_bat.mx,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -d -r1.182 -r1.183
--- gdk_bat.mx 4 Oct 2007 10:33:33 -0000 1.182
+++ gdk_bat.mx 23 Dec 2007 22:21:51 -0000 1.183
@@ -141,11 +141,15 @@
if (heapnames) {
str nme = BBP_physical(bn->batCacheid);
- bn->H->heap.filename = (str) GDKmalloc(strlen(nme) + 12);
- GDKfilepath(bn->H->heap.filename, NULL, nme, "head");
+ if (ht) {
+ bn->H->heap.filename = (str) GDKmalloc(strlen(nme) +
12);
+ GDKfilepath(bn->H->heap.filename, NULL, nme, "head");
+ }
- bn->T->heap.filename = (str) GDKmalloc(strlen(nme) + 12);
- GDKfilepath(bn->T->heap.filename, NULL, nme, "tail");
+ if (tt) {
+ bn->T->heap.filename = (str) GDKmalloc(strlen(nme) +
12);
+ GDKfilepath(bn->T->heap.filename, NULL, nme, "tail");
+ }
if (ATOMneedheap(ht)) {
bn->H->vheap = (Heap *) GDKzalloc(sizeof(Heap));
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins