Changeset: 124d3ebd5439 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=124d3ebd5439
Modified Files:
        sql/backends/monet5/UDF/capi/capi.c
Branch: default
Log Message:

Test for the same list of types when allocating and deallocating.


diffs (15 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
@@ -1577,7 +1577,10 @@ wrapup:
                                        if (data) {
                                                GDKfree(data);
                                        }
-                               } else if (bat_type > TYPE_str) {
+                               } else if (bat_type != TYPE_bit && bat_type != 
TYPE_bte &&
+                                                  bat_type != TYPE_sht && 
bat_type != TYPE_int &&
+                                                  bat_type != TYPE_oid && 
bat_type != TYPE_lng &&
+                                                  bat_type != TYPE_flt && 
bat_type != TYPE_dbl) {
                                        // this type was converted to 
individually malloced
                                        // strings
                                        // we have to free all the individual 
strings
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to