mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 18:53:12 +02:00
plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865)
This commit is contained in:
@@ -243,8 +243,7 @@ logger_backlog_group_messages (struct t_arraylist *lines)
|
||||
|
||||
error:
|
||||
free (message);
|
||||
if (messages)
|
||||
weechat_arraylist_free (messages);
|
||||
weechat_arraylist_free (messages);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -233,8 +233,7 @@ logger_tail_file (const char *filename, int lines)
|
||||
|
||||
error:
|
||||
free (part_of_line);
|
||||
if (list_lines)
|
||||
weechat_arraylist_free (list_lines);
|
||||
weechat_arraylist_free (list_lines);
|
||||
if (fd >= 0)
|
||||
close (fd);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user