diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-16 20:25:08 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-16 20:25:08 +0200 |
| commit | 46c7f91cdceef0d5dd801ac569fb5d0c76b711aa (patch) | |
| tree | 3280c238a009d38896d3caa6c92601817d54ef87 /src/path.c | |
| parent | 3bb997212b3a0d140a34932f9deff52793673d49 (diff) | |
| download | minishell-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } } |
