From e2a500e321b53db9e914068ca5ce078dd200d567 Mon Sep 17 00:00:00 2001 From: TapTap Date: Mon, 20 Jul 2026 20:40:26 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20cppcheck=20=E2=80=94=20remove=20redundan?= =?UTF-8?q?t=20free=20before=20=5Fexit=20in=20transport=5Fssh.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/transport_ssh.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/shared/transport_ssh.c b/src/shared/transport_ssh.c index 1d992b5..9b7950e 100644 --- a/src/shared/transport_ssh.c +++ b/src/shared/transport_ssh.c @@ -139,7 +139,6 @@ Client* client_connect_ssh(const char* destination, int port) { ssh_argv[ac++] = "ControlPath=~/.cache/fastsync-%r@%h:%p"; if (port > 0 && port != 22) { if ((size_t)ac + 2 >= ssh_argv_max) { - free(ssh_argv); _exit(1); } ssh_argv[ac++] = "-p"; @@ -147,7 +146,6 @@ Client* client_connect_ssh(const char* destination, int port) { ssh_argv[ac++] = port_str; } if ((size_t)ac + 3 >= ssh_argv_max) { - free(ssh_argv); _exit(1); } ssh_argv[ac++] = ssh_user;