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

Fix leak.


diffs (12 lines):

diff --git a/gdk/gdk_project.c b/gdk/gdk_project.c
--- a/gdk/gdk_project.c
+++ b/gdk/gdk_project.c
@@ -734,6 +734,8 @@ BATproject2(BAT *restrict l, BAT *restri
                        /* no need to lock bn, it's ours */
                        assert(r1->tvheap->parentid > 0);
                        BBPshare(r1->tvheap->parentid);
+                       /* there is no file, so we don't need to remove it */
+                       HEAPdecref(bn->tvheap, false);
                        bn->tvheap = r1->tvheap;
                        HEAPincref(r1->tvheap);
                        MT_lock_unset(&r1->theaplock);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to