1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

core: fix memory leak in function util_search_full_lib_name

This commit is contained in:
Sebastien Helleu
2012-02-19 19:14:06 +01:00
parent af72bcb01d
commit 508bfe5c7a
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -403,14 +403,20 @@ util_search_full_lib_name (const char *filename, const char *plugins_dir)
config_plugin_extensions[i],
plugins_dir);
if (full_name)
{
free (filename2);
return full_name;
}
}
}
else
{
full_name = util_search_full_lib_name_ext (filename2, "", plugins_dir);
if (full_name)
{
free (filename2);
return full_name;
}
}
free (filename2);