diff options
Diffstat (limited to 'module/p11-kit-lib.c')
-rw-r--r-- | module/p11-kit-lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/p11-kit-lib.c b/module/p11-kit-lib.c index ae88703..a868c4a 100644 --- a/module/p11-kit-lib.c +++ b/module/p11-kit-lib.c @@ -164,7 +164,8 @@ free_module_unlocked (void *data) /* Module must have no outstanding references */ assert (module->ref_count == 0); - dlclose (module->dl_module); + if (module->dl_module) + dlclose (module->dl_module); hash_free (module->config); free (module->name); free (module); |