Changeset: a51f602e668e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a51f602e668e
Modified Files:
        MonetDB5/src/optimizer/opt_mapreduce.mx
Branch: default
Log Message:

More carefully free what is supposed to be freed


diffs (20 lines):

diff -r cd9827839fee -r a51f602e668e MonetDB5/src/optimizer/opt_mapreduce.mx
--- a/MonetDB5/src/optimizer/opt_mapreduce.mx   Thu May 20 20:39:00 2010 +0200
+++ b/MonetDB5/src/optimizer/opt_mapreduce.mx   Thu May 20 20:45:08 2010 +0200
@@ -458,7 +458,7 @@
         * sql.bind patterns (for columns) are possibly scattered over the
         * full plan.  We need them all first to determine the signature and
         * return correctly. */
-       copy = FREE;
+       copy = FREE; /* free original copied signature */
        mrcluster[0] = '\0';
        for (i = 0; i < limit; i++) { /* phase 1 */
                p = old[i];
@@ -555,6 +555,7 @@
                switch (copy) {
                        case FREE:
                                freeInstruction(p);
+                               old[i] = NULL;
                        break;
                        case LEAVE:
                                /* make GCC happy */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to