summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/python/weechat-python.c3
-rw-r--r--src/plugins/relay/irc/relay-irc.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c
index 7bc3e9247..21fc0059d 100644
--- a/src/plugins/python/weechat-python.c
+++ b/src/plugins/python/weechat-python.c
@@ -1358,8 +1358,7 @@ weechat_python_infolist_constants ()
return infolist;
error:
- if (infolist)
- weechat_infolist_free (infolist);
+ weechat_infolist_free (infolist);
return NULL;
}
diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c
index ddb8516a4..79847cd5a 100644
--- a/src/plugins/relay/irc/relay-irc.c
+++ b/src/plugins/relay/irc/relay-irc.c
@@ -561,8 +561,7 @@ relay_irc_signal_irc_outtags_cb (const void *pointer, void *data,
(host && host[0]) ? host : "",
ptr_message);
- if (infolist_nick)
- weechat_infolist_free (infolist_nick);
+ weechat_infolist_free (infolist_nick);
}
}
free (irc_channel);