Changeset: 9a264bff2ddd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9a264bff2ddd
Modified Files:
        gdk/gdk_batop.c
Branch: Jul2021
Log Message:

HEAPdecref before unfix.


diffs (20 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -444,13 +444,14 @@ append_varsized_bat(BAT *b, BAT *n, stru
                        GDKfree(h);
                        return GDK_FAIL;
                }
-               BBPunshare(b->tvheap->parentid);
-               BBPunfix(b->tvheap->parentid);
+               bat parid = b->tvheap->parentid;
+               BBPunshare(parid);
                MT_lock_set(&b->theaplock);
                HEAPdecref(b->tvheap, false);
                ATOMIC_INIT(&h->refs, 1);
                b->tvheap = h;
                MT_lock_unset(&b->theaplock);
+               BBPunfix(parid);
        }
        /* copy data from n to b */
        r = BUNlast(b);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to