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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user