summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-raw.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:01:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 08:53:22 +0200
commit0b2d9bcb9b04b7e7ac3c2f626422392383575d2b (patch)
tree177e487efc30717415402ba969b246de3f88b28d /src/plugins/irc/irc-raw.c
parent1ad0b4b6699df50e0cc6a3c5d62ce3ac1f77440c (diff)
downloadweechat-0b2d9bcb9b04b7e7ac3c2f626422392383575d2b.zip
plugins: remove check of NULL pointers before calling weechat_hashtable_free() (issue #865)
Diffstat (limited to 'src/plugins/irc/irc-raw.c')
-rw-r--r--src/plugins/irc/irc-raw.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-raw.c b/src/plugins/irc/irc-raw.c
index 7aac2d54f..0ab77202f 100644
--- a/src/plugins/irc/irc-raw.c
+++ b/src/plugins/irc/irc-raw.c
@@ -123,8 +123,7 @@ irc_raw_message_match_filter (struct t_irc_raw_message *raw_message,
hashtable,
irc_raw_filter_hashtable_options);
match = (result && (strcmp (result, "1") == 0)) ? 1 : 0;
- if (hashtable)
- weechat_hashtable_free (hashtable);
+ weechat_hashtable_free (hashtable);
free (result);
return match;
}
@@ -407,8 +406,7 @@ irc_raw_open (int switch_to_buffer)
buffer_props,
&irc_input_data_cb, NULL, NULL,
&irc_buffer_close_cb, NULL, NULL);
- if (buffer_props)
- weechat_hashtable_free (buffer_props);
+ weechat_hashtable_free (buffer_props);
/* failed to create buffer ? then return */
if (!irc_raw_buffer)