From 7f9a317cd7ac510106d64400a43d67ca8ec1153d Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 18 Aug 2013 17:03:31 +0100 Subject: [PATCH] Free path on error, c_plugins --- src/plugins/c_plugins.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/c_plugins.c b/src/plugins/c_plugins.c index 8fbe71b8..b4bc4c53 100644 --- a/src/plugins/c_plugins.c +++ b/src/plugins/c_plugins.c @@ -27,6 +27,7 @@ c_plugin_create(const char * const filename) if (!handle) { log_warning ("dlopen failed to open `%s', %s", filename, dlerror ()); + g_string_free(path, TRUE); return NULL; }