summaryrefslogtreecommitdiffstats
path: root/src/b_export_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-24 19:35:05 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-24 19:35:05 +0200
commit418c6adb9b6c60dce662778257abb93c216da891 (patch)
tree62b6854c3b221a9e8661c968d9a32294f7290989 /src/b_export_next.c
parent.gitignore update (diff)
download42-minishell-418c6adb9b6c60dce662778257abb93c216da891.tar.gz
42-minishell-418c6adb9b6c60dce662778257abb93c216da891.tar.bz2
42-minishell-418c6adb9b6c60dce662778257abb93c216da891.tar.xz
42-minishell-418c6adb9b6c60dce662778257abb93c216da891.tar.zst
42-minishell-418c6adb9b6c60dce662778257abb93c216da891.zip
Freed leaks, fix in progress
Diffstat (limited to 'src/b_export_next.c')
-rw-r--r--src/b_export_next.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/b_export_next.c b/src/b_export_next.c
index 90a4820..c46389a 100644
--- a/src/b_export_next.c
+++ b/src/b_export_next.c
@@ -56,6 +56,7 @@ static int64_t
{
if (ft_strncmp(varname, env_dup[i], ft_strlen(env_dup[i]) + 1) == 0)
{
+ ft_delwords(env_dup);
return (i);
}
i++;