From 3eed74a75c86758c519cfba60a6ba83dcb1eee1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 00:19:31 +0200 Subject: plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865) --- src/plugins/irc/irc-ctcp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/irc/irc-ctcp.c') diff --git a/src/plugins/irc/irc-ctcp.c b/src/plugins/irc/irc-ctcp.c index 619a16f1e..a34f28c57 100644 --- a/src/plugins/irc/irc-ctcp.c +++ b/src/plugins/irc/irc-ctcp.c @@ -495,8 +495,7 @@ end: free (dup_ctcp); free (dup_ctcp_upper); free (dup_args); - if (list_messages) - weechat_arraylist_free (list_messages); + weechat_arraylist_free (list_messages); } /* -- cgit v1.2.3