Changeset: f5beb4e32222 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f5beb4e32222
Modified Files:
        monetdb5/modules/mal/mat.c
Branch: Jan2014
Log Message:

Avoid dereference through null


diffs (13 lines):

diff --git a/monetdb5/modules/mal/mat.c b/monetdb5/modules/mal/mat.c
--- a/monetdb5/modules/mal/mat.c
+++ b/monetdb5/modules/mal/mat.c
@@ -185,7 +185,8 @@ MATpackIncrement(Client cntxt, MalBlkPtr
                assert(!b->H->nil || !b->H->nonil);
                assert(!b->T->nil || !b->T->nonil);
                BBPkeepref(*ret = b->batCacheid);
-               BBPreleaseref(bb->batCacheid);
+               if( bb) 
+                       BBPreleaseref(bb->batCacheid);
        }
        return MAL_SUCCEED;
 }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to