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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user