X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fcommon%2Fplugin.c;h=b1983c125dfae81c78391ce0c43dcbfbd0719240;hp=8fa623f6c1665aa5d1850048d1f8eb467479f823;hb=e11caf622eba45a1561f480f1a6766b2a6aa1c37;hpb=62eabfdf4a2fb5f2ab8c271ca76665ffe00fca44 diff --git a/src/common/plugin.c b/src/common/plugin.c index 8fa623f6c..b1983c125 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -214,6 +214,7 @@ static gint plugin_load_deps(const gchar *filename, gchar **error) dep_plugin = plugin_load(path, error); if (dep_plugin == NULL) { g_free(path); + fclose(fp); return -1; } } @@ -463,6 +464,8 @@ void plugin_load_all(const gchar *type) if ((pfile = prefs_read_open(rcpath)) == NULL || (prefs_set_block_label(pfile, block) < 0)) { g_free(rcpath); + if (pfile) + prefs_file_close(pfile); return; } g_free(block);