coverity error handling 77/173877/1
authormallikarjun82 <vm.arjun@samsung.com>
Mon, 26 Mar 2018 14:05:03 +0000 (19:35 +0530)
committermallikarjun82 <vm.arjun@samsung.com>
Mon, 26 Mar 2018 14:06:23 +0000 (19:36 +0530)
This patch fixes resource leak by closing the dlhandle.

Coverity:110581

Change-Id: I7fc5bf98702553b8cec360ebe6f1b16606a3986d
Signed-off-by: mallikarjun82 <vm.arjun@samsung.com>
src/node/extension/extension.cpp

index 3443c25fbef3fd91279ae861c572f22df9afae92..59c144a3ceee34dfb0486d9e6f3db2944e847838 100755 (executable)
@@ -95,6 +95,7 @@ bool Extension::Initialize() {
   }
 
   initialized_ = true;
+  dlclose(handle);
   return true;
 }