script: fix memory leak in read of script repository file if it has invalid content
This commit is contained in:
parent
c6e9e18aaa
commit
6daa09b0b8
@ -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)
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user