Changeset: 2f7d4a7847c7 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2f7d4a7847c7
Modified Files:
        gdk/gdk_utils.c
Branch: Dec2025
Log Message:

add missing unlock


diffs (15 lines):

diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -2507,8 +2507,10 @@ void
 ma_free(allocator *sa, void *obj)
 {
        COND_LOCK_ALLOCATOR(sa);
-       if (!obj || ma_tmp_active(sa))
+       if (!obj || ma_tmp_active(sa)) {
+               COND_UNLOCK_ALLOCATOR(sa);
                return; // nothing to do
+       }
        // retrieve size from header
        void *ptr = (char *) obj - MA_HEADER_SIZE;
        size_t sz = *((size_t *) ptr);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to