1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

script: fix memory leak in case of invalid XML content in list of scripts

This commit is contained in:
Sébastien Helleu
2018-05-18 23:01:57 +02:00
parent 4aeed262f8
commit 26d972dd57
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@ Bug fixes::
* php: fix return code of functions config_write_option and config_write_line
* php: fix memory leak in 72 functions returning allocated strings
* ruby: fix memory leak in 7 functions returning allocated strings
* script: fix memory leak in case of invalid XML content in list of scripts
* scripts: fix memory leak in hook_info callback
* scripts: fix return value of hook_infolist callback (pointer instead of string)
* scripts: return long integer instead of string in function infolist_time
+2
View File
@@ -1411,6 +1411,8 @@ script_repo_file_read (int quiet)
SCRIPT_PLUGIN_NAME);
}
if (script)
script_repo_free (script);
if (locale)
free (locale);
if (locale_language)