Changeset: a15f7ffe73a3 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a15f7ffe73a3
Modified Files:
monetdb5/mal/mal_instruction.c
Branch: Jun2016
Log Message:
Memory leak.
diffs (21 lines):
diff --git a/monetdb5/mal/mal_instruction.c b/monetdb5/mal/mal_instruction.c
--- a/monetdb5/mal/mal_instruction.c
+++ b/monetdb5/mal/mal_instruction.c
@@ -211,6 +211,9 @@ freeMalBlk(MalBlkPtr mb)
if (mb->help)
GDKfree(mb->help);
mb->help = 0;
+ if (mb->marker)
+ GDKfree(mb->marker);
+ mb->marker = 0;
mb->inlineProp = 0;
mb->unsafeProp = 0;
GDKfree(mb);
@@ -298,6 +301,7 @@ addtoMalBlkHistory(MalBlkPtr mb, str mar
if (cpy == NULL)
return; /* ignore history */
cpy->history = NULL;
+ GDKfree(mb->marker);
mb->marker = GDKstrdup(marker);
if (mb->history == NULL)
mb->history = cpy;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list