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

v2.8-utf8proc
Sébastien Helleu 2018-05-18 23:01:57 +02:00
parent 4aeed262f8
commit 26d972dd57
2 changed files with 3 additions and 0 deletions

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

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)