retrieve_path() leak fixed
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/10/08 09:22:12 by lperrey #+# #+# */
|
||||
/* Updated: 2021/12/20 22:26:05 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/12/22 19:24:04 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -25,7 +25,7 @@ int init(t_all *c, char *argv[])
|
||||
environ = ft_dup_2d_arr(environ, (t_dup_f)ft_strdup);
|
||||
if (!environ)
|
||||
return (ft_reti_perror(0, "ft_dup_2d_arr(environ)"));
|
||||
c->path = retrieve_path();
|
||||
retrieve_path(&c->path);
|
||||
if (!init_shlvl())
|
||||
return (ft_reti_perror(0, "init_shlvl()"));
|
||||
open_script_file(c, argv);
|
||||
|
||||
Reference in New Issue
Block a user