Changeset: 9a9a7d7c9284 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9a9a7d7c9284
Modified Files:
        monetdb5/modules/mal/projectionpath.c
Branch: linear-hashing
Log Message:

Fix for Coverity memoery leak report.


diffs (19 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
@@ -15,13 +15,14 @@ ALGprojectionpath(Client cntxt, MalBlkPt
        int i;
        bat bid;
        bat *r = getArgReference_bat(stk, pci, 0);
-       BAT *b, **joins = (BAT**)GDKzalloc(pci->argc * sizeof(BAT*)); 
+       BAT *b, **joins = NULL;
 
        (void) mb;
        (void) cntxt;
 
        if(pci->argc <= 1)
                throw(MAL, "algebra.projectionpath", SQLSTATE(HY013) "INTERNAL 
ERROR");
+       joins = (BAT**)GDKzalloc(pci->argc * sizeof(BAT*)); 
        if ( joins == NULL)
                throw(MAL, "algebra.projectionpath", SQLSTATE(HY013) 
MAL_MALLOC_FAIL);
        for (i = pci->retc; i < pci->argc; i++) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to