Changeset: e8c2ea8dd2de for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e8c2ea8dd2de
Modified Files:
        monetdb5/optimizer/opt_octopus.c
Branch: Jan2014
Log Message:

Avoid resource leak


diffs (15 lines):

diff --git a/monetdb5/optimizer/opt_octopus.c b/monetdb5/optimizer/opt_octopus.c
--- a/monetdb5/optimizer/opt_octopus.c
+++ b/monetdb5/optimizer/opt_octopus.c
@@ -1011,8 +1011,10 @@ OPToctopusImplementation(Client cntxt, M
                }
        }
        /* we do not  support yet update operations in the octopus */
-       if ( update || autocommit==0 ) 
+       if ( update || autocommit==0 ) {
+               GDKfree(mod);
                return 0;
+       }
 
        /* find table leading the split */
        for (i = 1; i < limit; i++) {
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to