From 0baabf2d6278254b0b1060ce72e40188b42f35e4 Mon Sep 17 00:00:00 2001 From: cbdev Date: Mon, 19 Mar 2018 13:43:51 +0100 Subject: Fix resource leaks on error, reported by Coverity Scan --- plugin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'plugin.c') 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; } -- cgit v1.2.3