]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ErasureCodePlugin: close library before return on error 819/head
authorXing Lin <xinglin@cs.utah.edu>
Tue, 5 Nov 2013 05:25:42 +0000 (22:25 -0700)
committerXing Lin <xinglin@cs.utah.edu>
Wed, 6 Nov 2013 17:33:27 +0000 (10:33 -0700)
close and free resources for library before return

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
src/osd/ErasureCodePlugin.cc

index d8b9ae0fbbd81b589a6240466d25785a9e1c767b..38ea56a174c25319ddab5c06fd91b242058726fc 100644 (file)
@@ -112,6 +112,7 @@ int ErasureCodePluginRegistry::load(const std::string &plugin_name,
     if (r != 0) {
       derr << "erasure_code_init(" << plugin_name
            << "): " << strerror(-r) << dendl;
+      dlclose(library);
       return r;
     }
   } else {