Skip to content

Commit

Permalink
fix memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mngomane committed Mar 17, 2017
1 parent da9a3c8 commit 56320fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions minishell/srcs/non_pipe_redir2.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ static void sub_lred(t_entry *ent, t_sent **tab)
ent->av[1] = tab[1]->word;
ent->av[2] = NULL;
execve("/usr/bin/more", ent->av, ent->ep);
free(sent);
}

void red_left(t_entry *ent, t_env **envl, t_sent **tab)
Expand Down
1 change: 1 addition & 0 deletions sh3/srcs/non_pipe_redir2.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ static void sub_lred(t_entry *ent, t_sent **tab)
ent->av[1] = tab[1]->word;
ent->av[2] = NULL;
execve("/usr/bin/more", ent->av, ent->ep);
free(sent);
}

void red_left(t_entry *ent, t_env **envl, t_sent **tab)
Expand Down

0 comments on commit 56320fe

Please sign in to comment.