patch fuite de mémoire echo
This commit is contained in:
parent
4018bd6b4c
commit
feb019d000
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue