aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugin.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-03-19 13:43:51 +0100
committercbdev <cb@cbcdn.com>2018-03-19 13:43:51 +0100
commit0baabf2d6278254b0b1060ce72e40188b42f35e4 (patch)
treee76619071d0a617403075976c2ceeadb75492c1a /plugin.c
parenteabc4d0e07d2fb2f2a9aaf2571af490ec7e55b7d (diff)
downloadmidimonster-0baabf2d6278254b0b1060ce72e40188b42f35e4.tar.gz
midimonster-0baabf2d6278254b0b1060ce72e40188b42f35e4.tar.bz2
midimonster-0baabf2d6278254b0b1060ce72e40188b42f35e4.zip
Fix resource leaks on error, reported by Coverity Scan
Diffstat (limited to 'plugin.c')
-rw-r--r--plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin.c b/plugin.c
index 7b5e922..48db410 100644
--- a/plugin.c
+++ b/plugin.c
@@ -40,6 +40,7 @@ static int plugin_attach(char* path, char* file){
}
}
else{
+ dlclose(handle);
free(lib);
return 0;
}