Changeset: 4cda54f904b1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4cda54f904b1
Modified Files:
monetdb5/modules/mal/manifold.c
Branch: default
Log Message:
fixed crash in manifold called functions with external atoms
diffs (21 lines):
diff --git a/monetdb5/modules/mal/manifold.c b/monetdb5/modules/mal/manifold.c
--- a/monetdb5/modules/mal/manifold.c
+++ b/monetdb5/modules/mal/manifold.c
@@ -129,7 +129,7 @@ MANIFOLDjob(MULTItask *mut)
{ int i;
char *p, *q;
char **args;
- str y, msg= MAL_SUCCEED;
+ str y = NULL, msg= MAL_SUCCEED;
args = (char**) GDKzalloc(sizeof(char*) * mut->pci->argc);
if( args == NULL)
@@ -167,6 +167,8 @@ MANIFOLDjob(MULTItask *mut)
default:
msg= createException(MAL,"mal.manifold","manifold call
limitation ");
}
+ if (ATOMextern(mut->args[0].type) && y)
+ GDKfree(y);
bunins_failed:
GDKfree(args);
return msg;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list