1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 20:06:38 +02:00

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

This commit is contained in:
Sébastien Helleu
2020-02-18 21:04:21 +01:00
parent c6e9e18aaa
commit 6daa09b0b8
2 changed files with 3 additions and 0 deletions
+2
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);
}