1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 11:43:13 +02:00

irc: remove check of NULL pointers before calling free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-24 23:28:37 +02:00
parent f3a9bfe55e
commit 2bbf289635
26 changed files with 374 additions and 752 deletions
+1 -2
View File
@@ -292,8 +292,7 @@ irc_bar_item_buffer_modes (const void *pointer, void *data,
"%s%s",
IRC_COLOR_ITEM_CHANNEL_MODES,
(modes_without_args) ? modes_without_args : channel->modes);
if (modes_without_args)
free (modes_without_args);
free (modes_without_args);
return strdup (modes);
}