From 42cba254532074127bc3e99a9af13cab64143f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 19:57:23 +0200 Subject: [PATCH] exec: remove check of NULL pointers before calling exec_free() (issue #865) --- src/plugins/exec/exec-command.c | 3 +-- 1 file changed, 1 insertion(+), 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;