Browse Source

fix leaks env

master
Simon CHAKOR 2 years ago
parent
commit
0580f3c528
  1. 1
      src/builtin/built_env.c

1
src/builtin/built_env.c

@ -83,6 +83,7 @@ static void env_assign(t_cor *c, char *ptr)
{
c->name = ft_strsub(*c->t, 0, ptr - *(c->t));
push_env(&(c->dup_env), c->name, ptr + 1, 1);
ft_strdel(&(c->name));
c->o = 0;
}

Loading…
Cancel
Save