Changeset: 06cdc963c855 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/06cdc963c855
Modified Files:
gdk/gdk_bat.c
Branch: Jun2023
Log Message:
Free heap after failure.
diffs (16 lines):
diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -283,10 +283,12 @@ COLnew2(oid hseq, int tt, BUN cap, role_
}
if (bn->tvheap && width == 0 && ATOMheap(tt, bn->tvheap, cap) !=
GDK_SUCCEED) {
+ HEAPfree(bn->theap, true);
goto bailout;
}
DELTAinit(bn);
if (BBPcacheit(bn, true) != GDK_SUCCEED) {
+ /* cannot happen, function always returns success */
goto bailout;
}
TRC_DEBUG(ALGO, "-> " ALGOBATFMT "\n", ALGOBATPAR(bn));
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]