Changeset: 9835d7715666 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9835d7715666
Modified Files:
        gdk/gdk_rtree.c
Branch: default
Log Message:

Fixes crash for in-memory farm. Theap might not be allocated


diffs (12 lines):

diff --git a/gdk/gdk_rtree.c b/gdk/gdk_rtree.c
--- a/gdk/gdk_rtree.c
+++ b/gdk/gdk_rtree.c
@@ -274,7 +274,7 @@ RTREEdestroy(BAT *b)
                pb->trtree->destroy = true;
                RTREEdecref(pb);
                //If the farm is in-memory, don't unlink the file (there is no 
file in that case)
-               if (!GDKinmemory(pb->theap->farmid)) {
+               if (pb->theap && !GDKinmemory(pb->theap->farmid)) {
                        GDKunlink(pb->theap->farmid,
                                BATDIR,
                                BBP_physical(b->batCacheid),
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to