1
0
mirror of https://github.com/KeyZox71/ft_minipowershell.git synced 2025-06-25 02:13:35 +02:00

🔨」 fix: fixed some leak

This commit is contained in:
2024-07-15 17:04:33 +02:00
parent 605d9dd2eb
commit ab717f740b
4 changed files with 16 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/22 15:07:24 by adjoly #+# #+# */
/* Updated: 2024/07/12 15:26:48 by adjoly ### ########.fr */
/* Updated: 2024/07/15 16:38:59 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -31,6 +31,7 @@ void ft_cd(t_env *env, char *args)
else
new_pwd = ft_strdup(args);
ret = chdir(new_pwd);
free(new_pwd);
if (ret == -1)
{
send_error_parsing(ERROR_NO_FILE);