1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +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
+1
View File
@@ -7,6 +7,7 @@ v0.3.7-rc2, 2012-02-19
Version 0.3.7 (under dev!)
--------------------------
* core: fix memory leak in function util_search_full_lib_name
* core: automatically add newline char after last pasted line (when pasting many
lines with confirmation) (task #10703)
* core: fix bug with layout: assign layout number in buffers when doing
+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);