Skip to content

Commit

Permalink
Fix leaked dl_handle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 10, 2014
1 parent b961af3 commit 3b8d8df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cats/cats_dynamic.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ B_DB *db_init_database(JCR *jcr,
if (backend_instantiate == NULL) {
Jmsg(jcr, M_ABORT, 0, _("Lookup of backend_instantiate in shared library %s failed: ERR=%s\n"),
shared_library_name, NPRT(dlerror()));
dlclose(dl_handle);
return (B_DB *)NULL;
}

Expand All @@ -159,6 +160,7 @@ B_DB *db_init_database(JCR *jcr,
if (flush_backend == NULL) {
Jmsg(jcr, M_ABORT, 0, _("Lookup of flush_backend in shared library %s failed: ERR=%s\n"),
shared_library_name, NPRT(dlerror()));
dlclose(dl_handle);
return (B_DB *)NULL;
}

Expand Down

0 comments on commit 3b8d8df

Please sign in to comment.