mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 11:26:51 +01:00
「🔨」 fix(exec/exec_cmd): fixed leak when ./
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/07/09 19:25:18 by adjoly #+# #+# */
|
/* Created: 2024/07/09 19:25:18 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/07/15 14:45:09 by mmoussou ### ########.fr */
|
/* Updated: 2024/07/17 16:13:29 by mmoussou ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -69,6 +69,7 @@ char *get_cmd_local_path(char *cmd, t_env *env)
|
|||||||
if (!path)
|
if (!path)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
path = ft_strjoin_free_s1(path, cmd);
|
path = ft_strjoin_free_s1(path, cmd);
|
||||||
|
free(cmd);
|
||||||
return (path);
|
return (path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user