script: fix memory leak in read of script repository file if it has invalid content

v2.8-utf8proc
Sébastien Helleu 2020-02-18 21:04:21 +01:00
parent c6e9e18aaa
commit 6daa09b0b8
2 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ Bug fixes::
* irc: fix memory leak when the channel topic is changed
* logger: fix crash when logging is disabled on a buffer and the log file was deleted in the meanwhile, when option logger.file.info_lines is on (issue #1444)
* relay: update buffers synchronization when buffers are renamed (issue #1428)
* script: fix memory leak in read of script repository file if it has invalid content
* script: fix unexpected display of scripts list in buffer with command /script list -i
* xfer: send signal "xfer_ended" after the received file has been renamed (issue #1438)

View File

@ -1241,6 +1241,8 @@ script_repo_file_read (int quiet)
{
if (strstr (ptr_line, "<plugin id="))
{
if (script)
script_repo_free (script);
script = script_repo_alloc ();
weechat_hashtable_remove_all (descriptions);
}