diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:57:23 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 21:21:48 +0200 |
commit | 42cba254532074127bc3e99a9af13cab64143f3d (patch) | |
tree | b1e994091738264d8aace76ace0af3cbf642a67f | |
parent | 7438d2c737b5288e5976537b3161fc966f394aa4 (diff) | |
download | weechat-42cba254532074127bc3e99a9af13cab64143f3d.zip |
exec: remove check of NULL pointers before calling exec_free() (issue #865)
-rw-r--r-- | src/plugins/exec/exec-command.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/exec/exec-command.c b/src/plugins/exec/exec-command.c index e2173f7de..9f897c3ae 100644 --- a/src/plugins/exec/exec-command.c +++ b/src/plugins/exec/exec-command.c @@ -642,8 +642,7 @@ exec_command_run (struct t_gui_buffer *buffer, error: free (shell); - if (new_exec_cmd) - exec_free (new_exec_cmd); + exec_free (new_exec_cmd); weechat_hashtable_free (process_options); return WEECHAT_RC_ERROR; |