Changeset: 1e9d53caa56e for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/1e9d53caa56e Modified Files: gdk/gdk_bbp.c Branch: Jun2023 Log Message:
fix leak of lockfile memory diffs (31 lines): diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c --- a/gdk/gdk_bbp.c +++ b/gdk/gdk_bbp.c @@ -1845,6 +1845,7 @@ BBPinit(void) */ static int backup_files = 0, backup_dir = 0, backup_subdir = 0; +static char *lockfile = NULL; void BBPexit(void) @@ -1902,7 +1903,10 @@ BBPexit(void) backup_files = 0; backup_dir = 0; backup_subdir = 0; - + if (lockfile) { + GDKfree(lockfile); + lockfile = NULL; + } } /* @@ -4491,7 +4495,6 @@ BBPcallbacks(void) * This is at the end of the file on purpose: we don't want people to * accidentally use GDKtmLock directly. */ static MT_Lock GDKtmLock = MT_LOCK_INITIALIZER(GDKtmLock); -static char *lockfile; static int lockfd; void _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org