1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

plugins: remove check of NULL pointers before calling weechat_hashtable_free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-25 19:01:56 +02:00
parent 1ad0b4b669
commit 0b2d9bcb9b
41 changed files with 189 additions and 373 deletions
+2 -4
View File
@@ -559,10 +559,8 @@ fset_command_run_set_cb (const void *pointer, void *data,
condition_ok = (result && (strcmp (result, "1") == 0));
free (result);
}
if (eval_extra_vars)
weechat_hashtable_free (eval_extra_vars);
if (eval_options)
weechat_hashtable_free (eval_options);
weechat_hashtable_free (eval_extra_vars);
weechat_hashtable_free (eval_options);
/* check condition to trigger the fset buffer */
if (condition_ok)