]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add missing unlock. CID #1597275
authorAlan T. DeKok <aland@freeradius.org>
Sat, 11 May 2024 00:03:52 +0000 (20:03 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 11 May 2024 00:03:52 +0000 (20:03 -0400)
src/lib/server/dl_module.c

index 5fcf3511eec3ffc50608babe752230ad5c59fdc4..7d1096c0eb72405220de34852f75708821c9686d 100644 (file)
@@ -378,6 +378,7 @@ dl_module_t *dl_module_alloc(dl_module_t const *parent, char const *name, dl_mod
        error:
                talloc_free(module_name);
                talloc_free(dl_module);         /* Do not free dl explicitly, it's handled by the destructor */
+               pthread_mutex_unlock(&dl_module_loader->lock);
                return NULL;
        }
        dl_module->dl = dl;