aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-16 20:25:08 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-16 20:25:08 +0200
commit46c7f91cdceef0d5dd801ac569fb5d0c76b711aa (patch)
tree3280c238a009d38896d3caa6c92601817d54ef87 /src/path.c
parent3bb997212b3a0d140a34932f9deff52793673d49 (diff)
downloadminishell-46c7f91cdceef0d5dd801ac569fb5d0c76b711aa.tar.gz
minishell-46c7f91cdceef0d5dd801ac569fb5d0c76b711aa.tar.bz2
minishell-46c7f91cdceef0d5dd801ac569fb5d0c76b711aa.zip
Fixing memory leaks in preprocess and parser
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index 4949ba9..f583d00 100644
--- a/src/path.c
+++ b/src/path.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/27 15:51:01 by cacharle #+# #+# */
-/* Updated: 2020/09/15 17:45:44 by charles ### ########.fr */
+/* Updated: 2020/09/16 19:28:34 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -45,6 +45,7 @@ static bool st_dir_search(
ft_strcpy(exec_path, dirname);
ft_strcat(exec_path, "/");
ft_strcat(exec_path, exec_name);
+ closedir(dir);
return (true);
}
}