From 463013eb318334c2ced2326bc7dca9e8c7ee8922 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Fri, 10 May 2024 20:03:52 -0400 Subject: [PATCH] add missing unlock. CID #1597275 --- src/lib/server/dl_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/server/dl_module.c b/src/lib/server/dl_module.c index 5fcf3511ee..7d1096c0eb 100644 --- a/src/lib/server/dl_module.c +++ b/src/lib/server/dl_module.c @@ -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; -- 2.47.3