1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +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
+3 -6
View File
@@ -300,12 +300,9 @@ irc_info_info_irc_buffer_cb (const void *pointer, void *data,
if (server && ptr_server && channel)
ptr_channel = irc_channel_search (ptr_server, channel);
if (server)
free (server);
if (channel)
free (channel);
if (host)
free (host);
free (server);
free (channel);
free (host);
if (ptr_channel)
{