From feb019d000f21e050de3c470f876b3f133c9683a Mon Sep 17 00:00:00 2001 From: rick Date: Wed, 24 Feb 2021 02:01:22 +0100 Subject: [PATCH] =?UTF-8?q?patch=20fuite=20de=20m=C3=A9moire=20echo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boitoutil/essential_shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/boitoutil/essential_shell.c b/src/boitoutil/essential_shell.c index bacba60..80eafcb 100644 --- a/src/boitoutil/essential_shell.c +++ b/src/boitoutil/essential_shell.c @@ -54,6 +54,7 @@ int native_command(char *command[]) if (i == 2) *(tmp + strlen(tmp) - 1) = '\0'; echo(tmp); + free(tmp); } else ret = 0;