patch fuite de mémoire echo

This commit is contained in:
rick 2021-02-24 02:01:22 +01:00
parent 4018bd6b4c
commit feb019d000
Signed by: Rick
GPG key ID: 2B593F087240EE99

View file

@ -54,6 +54,7 @@ int native_command(char *command[])
if (i == 2) if (i == 2)
*(tmp + strlen(tmp) - 1) = '\0'; *(tmp + strlen(tmp) - 1) = '\0';
echo(tmp); echo(tmp);
free(tmp);
} }
else else
ret = 0; ret = 0;