Changeset: 4b95f6ef396e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4b95f6ef396e
Modified Files:
        monetdb5/modules/mal/tablet.c
Branch: directappend
Log Message:

Always free scratch buffers


diffs (15 lines):

diff --git a/monetdb5/modules/mal/tablet.c b/monetdb5/modules/mal/tablet.c
--- a/monetdb5/modules/mal/tablet.c
+++ b/monetdb5/modules/mal/tablet.c
@@ -2091,6 +2091,11 @@ SQLload_file(Client cntxt, Tablet *as, b
                GDKfree(task.rowerror);
        MT_sema_destroy(&task.producer);
        MT_sema_destroy(&task.consumer);
+       for (int t = 0; t < threads; t++) {
+               char *scratch = ptask[t].scratch;
+               if (scratch != NULL && scratch != ptask[t].scratch_buffer)
+                       GDKfree(scratch);
+       }
 #ifdef MLOCK_TST
        munlockall();
 #endif
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to