Changeset: f43f56eec6f5 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f43f56eec6f5
Modified Files:
        sql/server/sql_semantic.c
Branch: Jun2020
Log Message:

Allocation check


diffs (13 lines):

diff --git a/sql/server/sql_semantic.c b/sql/server/sql_semantic.c
--- a/sql/server/sql_semantic.c
+++ b/sql/server/sql_semantic.c
@@ -325,7 +325,8 @@ symbol2string(mvc *sql, symbol *se, int 
                        sname = sql->session->schema->base.name;
 
                for (aux = ops; aux; aux = aux->next) nargs++;
-               inputs = GDKzalloc(nargs * sizeof(char**));
+               if (!(inputs = GDKzalloc(nargs * sizeof(char**))))
+                       return NULL;
 
                for (aux = ops; aux; aux = aux->next) {
                        if (!(inputs[i] = symbol2string(sql, aux->data.sym, 
expression, err))) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to