Changeset: 9c25e88c57b8 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9c25e88c57b8
Modified Files:
        gdk/gdk_bat.c
Branch: Jan2022
Log Message:

Double free after BBPclear.


diffs (18 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -291,14 +291,6 @@ COLnew2(oid hseq, int tt, BUN cap, role_
        return bn;
   bailout:
        BBPclear(bn->batCacheid, true);
-       if (bn->theap)
-               HEAPdecref(bn->theap, true);
-       if (bn->tvheap)
-               HEAPdecref(bn->tvheap, true);
-       MT_lock_destroy(&bn->theaplock);
-       MT_lock_destroy(&bn->batIdxLock);
-       MT_rwlock_destroy(&bn->thashlock);
-       GDKfree(bn);
        return NULL;
 }
 
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to