Changeset: 3af67c70cb24 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3af67c70cb24
Modified Files:
MonetDB/src/gdk/gdk_atoms.mx
Branch: Oct2010
Log Message:
Use the actual size of the heap to clear memory.
diffs (12 lines):
diff -r db0a5001621c -r 3af67c70cb24 MonetDB/src/gdk/gdk_atoms.mx
--- a/MonetDB/src/gdk/gdk_atoms.mx Sat Oct 09 13:56:30 2010 +0200
+++ b/MonetDB/src/gdk/gdk_atoms.mx Sat Oct 09 14:38:34 2010 +0200
@@ -1877,7 +1877,7 @@
d->hashash = 1; /* new string heaps get the hash value (and
length) stored */
#ifndef NDEBUG
/* fill should solve initialisation problems within valgrind */
- memset(d->base + d->free, 0, size - d->free);
+ memset(d->base + d->free, 0, d->size - d->free);
#endif
}
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list