From 46c7f91cdceef0d5dd801ac569fb5d0c76b711aa Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 16 Sep 2020 20:25:08 +0200 Subject: Fixing memory leaks in preprocess and parser --- src/path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/path.c') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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); } } -- cgit