Changeset: 7cbf91bbbf2c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7cbf91bbbf2c
Modified Files:
        monetdb5/modules/mal/projectionpath.c
Branch: Jul2021
Log Message:

small leak fix


diffs (12 lines):

diff --git a/monetdb5/modules/mal/projectionpath.c 
b/monetdb5/modules/mal/projectionpath.c
--- a/monetdb5/modules/mal/projectionpath.c
+++ b/monetdb5/modules/mal/projectionpath.c
@@ -33,6 +33,8 @@ ALGprojectionpath(Client cntxt, MalBlkPt
                        while (--i >= pci->retc)
                                BBPunfix(joins[i - pci->retc]->batCacheid);
                        GDKfree(joins);
+                       if (b)
+                               BBPunfix(b->batCacheid);
                        throw(MAL, "algebra.projectionpath", "%s", b ? 
SEMANTIC_TYPE_MISMATCH : INTERNAL_BAT_ACCESS);
                }
                joins[i - pci->retc] = b;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to