diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-02-21 20:44:17 +0100 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-02-21 20:44:17 +0100 |
commit | ff7db14f0acae463165377f2d4b999e566298b40 (patch) | |
tree | 56d282391134cb1dbc1824e45eaa9b36e06c6f2b /module/p11-kit-lib.c | |
parent | 1d9ca2ddb4df85b7235ec78e4996cf2d1fd775a2 (diff) |
Fix bug where we try to dlclose() modules we didn't load.
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); |