mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 18:53:12 +02:00
core: remove check of NULL pointers before calling string_free_split() (issue #865)
This commit is contained in:
@@ -493,8 +493,7 @@ error:
|
||||
arraylist_free (args);
|
||||
if (result)
|
||||
string_dyn_free (result, 1);
|
||||
if (lines)
|
||||
string_free_split (lines);
|
||||
string_free_split (lines);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -361,8 +361,7 @@ hook_process_child (struct t_hook *hook_process)
|
||||
}
|
||||
|
||||
/* should not be executed if execvp was OK */
|
||||
if (exec_args)
|
||||
string_free_split (exec_args);
|
||||
string_free_split (exec_args);
|
||||
fprintf (stderr, "Error with command '%s'\n",
|
||||
HOOK_PROCESS(hook_process, command));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user