1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

core: remove check of NULL pointers before calling string_dyn_free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-25 19:15:03 +02:00
parent 7af01a56ca
commit 409a06982e
3 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -819,10 +819,8 @@ gui_key_expand (const char *key, char **key_name, char **key_name_alias)
return 1;
error:
if (str_dyn_key)
string_dyn_free (str_dyn_key, 1);
if (str_dyn_key_alias)
string_dyn_free (str_dyn_key_alias, 1);
string_dyn_free (str_dyn_key, 1);
string_dyn_free (str_dyn_key_alias, 1);
return 0;
}