Changeset: e54e62b5560b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e54e62b5560b
Modified Files:
monetdb5/modules/mal/remote.c
Branch: monetdbe_prepare
Log Message:
Fix reference counting bug.
diffs (24 lines):
diff --git a/monetdb5/modules/mal/remote.c b/monetdb5/modules/mal/remote.c
--- a/monetdb5/modules/mal/remote.c
+++ b/monetdb5/modules/mal/remote.c
@@ -1404,15 +1404,14 @@ static str RMTexec(Client cntxt, MalBlkP
BBPkeepref(results[i].id);
}
- if (tmp != MAL_SUCCEED) {
- for (int j = 0; j < i; j++) {
- BBPrelease(results[j].id);
- }
- }
- else {
+ if (tmp == MAL_SUCCEED) {
assert(rcb->context);
tmp = rcb->call(rcb->context, tblname, results, fields);
}
+
+ for (int j = 0; j < i; j++)
+ BBPrelease(results[j].id);
+
GDKfree(results);
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list