Changeset: 23c0e02b47bb for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/23c0e02b47bb Modified Files: gdk/gdk_logger.c Branch: Aug2024 Log Message:
Fix cleanup in very unlikely error. diffs (20 lines): diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c --- a/gdk/gdk_logger.c +++ b/gdk/gdk_logger.c @@ -2429,6 +2429,8 @@ do_flush_range_cleanup(logger *lg) logged_range *frange = lg->flush_ranges; logged_range *first = frange; + if (frange == NULL) + return NULL; while (frange->next) { if (ATOMIC_GET(&frange->refcount) > 1) break; @@ -2532,6 +2534,7 @@ log_create(int debug, const char *fn, co }; lg->current = &dummy; if (log_open_output(lg) != GDK_SUCCEED) { + lg->current = NULL; log_destroy(lg); return NULL; } _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org