Changeset: 33d5b4dd681e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/33d5b4dd681e
Modified Files:
        sql/backends/monet5/UDF/capi/capi.c
Branch: resource_management
Log Message:

fix leak in capi, defer from moving allocator in udf modules for now


diffs (18 lines):

diff --git a/sql/backends/monet5/UDF/capi/capi.c 
b/sql/backends/monet5/UDF/capi/capi.c
--- a/sql/backends/monet5/UDF/capi/capi.c
+++ b/sql/backends/monet5/UDF/capi/capi.c
@@ -1225,12 +1225,12 @@ static str CUDFeval(Client cntxt, MalBlk
                        bat_data->count = BATcount(input_bats[index]);
                        bat_data->null_value = NULL;
                        bat_data->data = bat_data->count == 0 ? NULL :
-                               GDKzalloc(sizeof(char *) * bat_data->count);
+                               ma_zalloc(mb->ma, sizeof(char *) * 
bat_data->count);
                        if (bat_data->count > 0 && !bat_data->data) {
                                msg = createException(MAL, "cudf.eval", 
MAL_MALLOC_FAIL);
                                goto wrapup;
                        }
-                       bat_data->alloced = true;
+                       bat_data->alloced = false;
                        j = 0;
 
                        li = bat_iterator(input_bats[index]);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to