Changeset: abde58823017 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/abde58823017
Modified Files:
        sql/backends/monet5/sql_upgrades.c
Branch: mangled
Log Message:

Fix memory leak.


diffs (22 lines):

diff --git a/sql/backends/monet5/sql_upgrades.c 
b/sql/backends/monet5/sql_upgrades.c
--- a/sql/backends/monet5/sql_upgrades.c
+++ b/sql/backends/monet5/sql_upgrades.c
@@ -4675,12 +4675,17 @@ sql_update_default(Client c, mvc *sql, c
                        BBPunfix(b->batCacheid);
                        /* nothing to do */
                        GDKfree(buf);
+                       res_table_destroy(output);
                        return NULL;
                }
                BBPunfix(b->batCacheid);
        }
-       else
+       else {
+               res_table_destroy(output);
                throw(SQL, __func__, SQLSTATE(HY013) MAL_MALLOC_FAIL);
+       }
+
+       res_table_destroy(output);
 
        if (!*systabfixed && (err = sql_fix_system_tables(c, sql, prev_schema)) 
!= NULL)
                return err;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to