diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 00:18:30 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 20:59:25 +0200 |
commit | e73bff95fa4bcc0902b65263bd47ec8bdc0c1128 (patch) | |
tree | d08516ff949e2b7427e8014e5424793540195bf3 /src/gui/gui-nicklist.c | |
parent | b56b34711dfb3bacee31265e4aa28f3c1d2a7bab (diff) | |
download | weechat-e73bff95fa4bcc0902b65263bd47ec8bdc0c1128.zip |
core: remove check of NULL pointers before calling free() (issue #865)
Diffstat (limited to 'src/gui/gui-nicklist.c')
-rw-r--r-- | src/gui/gui-nicklist.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/gui-nicklist.c b/src/gui/gui-nicklist.c index 4d0443887..7e43f4275 100644 --- a/src/gui/gui-nicklist.c +++ b/src/gui/gui-nicklist.c @@ -620,8 +620,7 @@ gui_nicklist_remove_nick (struct t_gui_buffer *buffer, gui_nicklist_send_signal ("nicklist_nick_removed", buffer, nick_removed); - if (nick_removed) - free (nick_removed); + free (nick_removed); } /* @@ -692,8 +691,7 @@ gui_nicklist_remove_group (struct t_gui_buffer *buffer, gui_nicklist_send_signal ("nicklist_group_removed", buffer, group_removed); - if (group_removed) - free (group_removed); + free (group_removed); } /* |