Changeset: 13ad2af15cd3 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=13ad2af15cd3 Modified Files: sql/backends/monet5/sql.c Branch: default Log Message:
Plug some holes. diffs (27 lines): diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c --- a/sql/backends/monet5/sql.c +++ b/sql/backends/monet5/sql.c @@ -2773,6 +2773,7 @@ mvc_import_table_wrap(Client cntxt, MalB GDKfree(fn); return msg; } + GDKfree(fn); } if (fixed_widths && strcmp(fixed_widths, str_nil) != 0) { @@ -3053,6 +3054,7 @@ mvc_bin_import_table_wrap(Client cntxt, /* this code should be extended to * deal with larger text strings. */ FILE *f = fopen(fn, "r"); + GDKfree(fn); if (f == NULL) { BBPreclaim(c); msg = createException(SQL, "sql", SQLSTATE(42000) "Failed to re-open file %s", fname); @@ -3083,6 +3085,7 @@ mvc_bin_import_table_wrap(Client cntxt, GDKfree(buf); } else { c = BATattach(tpe, fn, TRANSIENT); + GDKfree(fn); } if (c == NULL) { msg = createException(SQL, "sql", SQLSTATE(42000) "Failed to attach file %s", fname); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list