mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
irc: remove check of NULL pointers before calling free() (issue #865)
This commit is contained in:
@@ -594,8 +594,7 @@ irc_completion_channel_topic_cb (const void *pointer, void *data,
|
||||
weechat_completion_list_add (completion,
|
||||
(topic) ? topic : ptr_channel->topic,
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
if (topic)
|
||||
free (topic);
|
||||
free (topic);
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
Reference in New Issue
Block a user