Changeset: bc9154e5b5bc for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/bc9154e5b5bc
Modified Files:
sql/storage/bat/bat_logger.c
Branch: Dec2025
Log Message:
initialize ta before goto
diffs (21 lines):
diff --git a/sql/storage/bat/bat_logger.c b/sql/storage/bat/bat_logger.c
--- a/sql/storage/bat/bat_logger.c
+++ b/sql/storage/bat/bat_logger.c
@@ -1080,14 +1080,15 @@ snapshot_immediate_copy_file(stream *pla
}
to_copy = (size_t) statbuf.st_size;
+ allocator *ta = MT_thread_getallocator();
+ allocator_state ta_state = ma_open(ta);
+
s = open_rstream(path);
if (!s) {
GDKerror("%s", mnstr_peek_error(NULL));
goto end;
}
- allocator *ta = MT_thread_getallocator();
- allocator_state ta_state = ma_open(ta);
buf = ma_alloc(ta, bufsize);
if (!buf) {
GDKerror("GDKmalloc failed");
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]