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

script: remove check of NULL pointers before calling script_repo_free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-25 20:21:41 +02:00
parent 9c3eda660d
commit 2b919b0a01
+2 -4
View File
@@ -1191,8 +1191,7 @@ script_repo_file_read (int quiet)
{
if (strstr (ptr_line, "<plugin id="))
{
if (script)
script_repo_free (script);
script_repo_free (script);
script = script_repo_alloc ();
weechat_hashtable_remove_all (descriptions);
}
@@ -1385,8 +1384,7 @@ script_repo_file_read (int quiet)
SCRIPT_PLUGIN_NAME);
}
if (script)
script_repo_free (script);
script_repo_free (script);
free (locale);
free (locale_language);
weechat_hashtable_free (descriptions);