From 114084a4fc232b18dc07e332a355485b671cdbf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 19:40:05 +0200 Subject: [PATCH] relay: remove check of NULL pointers before calling weechat_completion_free() (issue #865) --- src/plugins/relay/weechat/relay-weechat-protocol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c index d2b3e144c..5a9d85351 100644 --- a/src/plugins/relay/weechat/relay-weechat-protocol.c +++ b/src/plugins/relay/weechat/relay-weechat-protocol.c @@ -811,8 +811,7 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(completion) return WEECHAT_RC_OK; error: - if (completion) - weechat_completion_free (completion); + weechat_completion_free (completion); msg = relay_weechat_msg_new (id); if (msg)