summaryrefslogtreecommitdiff
path: root/src/core/hook/hook-line.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 00:18:30 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-25 20:59:25 +0200
commite73bff95fa4bcc0902b65263bd47ec8bdc0c1128 (patch)
treed08516ff949e2b7427e8014e5424793540195bf3 /src/core/hook/hook-line.c
parentb56b34711dfb3bacee31265e4aa28f3c1d2a7bab (diff)
downloadweechat-e73bff95fa4bcc0902b65263bd47ec8bdc0c1128.zip
core: remove check of NULL pointers before calling free() (issue #865)
Diffstat (limited to 'src/core/hook/hook-line.c')
-rw-r--r--src/core/hook/hook-line.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hook/hook-line.c b/src/core/hook/hook-line.c
index cea6f7afa..ed1fcb781 100644
--- a/src/core/hook/hook-line.c
+++ b/src/core/hook/hook-line.c
@@ -176,8 +176,7 @@ hook_line_exec (struct t_gui_line *line)
str_tags = string_rebuild_split_string (
(const char **)line->data->tags_array, ",", 0, -1);
HASHTABLE_SET_STR_NOT_NULL("tags", str_tags);
- if (str_tags)
- free (str_tags);
+ free (str_tags);
HASHTABLE_SET_INT("displayed", line->data->displayed);
HASHTABLE_SET_INT("notify_level", line->data->notify_level);
HASHTABLE_SET_INT("highlight", line->data->highlight);