summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/b_export.c1
-rw-r--r--src/s_init.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/b_export.c b/src/b_export.c
index fa9a6d1..4e3b4c7 100644
--- a/src/b_export.c
+++ b/src/b_export.c
@@ -118,6 +118,7 @@ uint8_t
{
ft_sprintf(fmt, "%s=%s", *ptr, varval);
b_add_to_env_from_globals(*ptr, fmt, msh);
+ ft_memdel((void*)&varval);
}
}
else if (next == FALSE && check_equals(*ptr) == TRUE)
diff --git a/src/s_init.c b/src/s_init.c
index d277984..cd03e72 100644
--- a/src/s_init.c
+++ b/src/s_init.c
@@ -75,7 +75,7 @@ static void
t_msh
*init_msh(char *const argv[],
- char *const envp[])
+ char *const envp[])
{
t_msh *msh;