Changeset: 50d2b54b7335 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=50d2b54b7335
Modified Files:
        MonetDB5/src/mal/mal_instruction.mx
Branch: default
Log Message:

Make variable names private
Don't share variable names. That will cause double frees.


diffs (12 lines):

diff -r 4150ed50638e -r 50d2b54b7335 MonetDB5/src/mal/mal_instruction.mx
--- a/MonetDB5/src/mal/mal_instruction.mx       Wed Sep 01 09:25:27 2010 +0200
+++ b/MonetDB5/src/mal/mal_instruction.mx       Wed Sep 01 19:42:47 2010 +0200
@@ -1475,7 +1475,7 @@
        if ( isTmpVar(mb,x))
                res = newTmpVariable(tm, getVarType(mb,x));
        else
-               res = newVariable(tm,getVarName(mb,x), getVarType(mb,x));
+               res = newVariable(tm,GDKstrdup(getVarName(mb,x)), 
getVarType(mb,x));
        if (isVarFixed(mb, x) )
                setVarFixed(tm,res);
        if (isVarUsed(mb, x) )
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to