Changeset: 1caf297fdef8 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1caf297fdef8
Modified Files:
monetdb5/mal/mal_debugger.c
Branch: default
Log Message:
End iterator before returning
diffs (19 lines):
diff --git a/monetdb5/mal/mal_debugger.c b/monetdb5/mal/mal_debugger.c
--- a/monetdb5/mal/mal_debugger.c
+++ b/monetdb5/mal/mal_debugger.c
@@ -428,6 +428,7 @@ BATinfo(BAT **key, BAT **val, const bat
BUNappend(bk, "tvheap->dirty", false) != GDK_SUCCEED ||
BUNappend(bv, (b->tvheap && b->tvheap->dirty) ? "dirty" : "clean",
false) != GDK_SUCCEED ||
infoHeap(bk, bv, b->tvheap, "theap.") != GDK_SUCCEED) {
+ bat_iterator_end(&bi);
BBPreclaim(bk);
BBPreclaim(bv);
BBPunfix(b->batCacheid);
@@ -437,6 +438,7 @@ BATinfo(BAT **key, BAT **val, const bat
MT_rwlock_rdlock(&b->thashlock);
if (b->thash && HASHinfo(bk, bv, b->thash, "thash->") != GDK_SUCCEED) {
MT_rwlock_rdunlock(&b->thashlock);
+ bat_iterator_end(&bi);
BBPreclaim(bk);
BBPreclaim(bv);
BBPunfix(b->batCacheid);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]