diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-12-18 16:38:46 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-12-18 16:38:46 +0100 |
commit | 798899df9da337ff47a8fb69403009c316f01e7d (patch) | |
tree | cad13885ea0f70f0a39b9d200b778ca14776b8f6 /src/c_ctrls.c | |
parent | Commit (diff) | |
parent | normagain (diff) | |
download | 42-minishell-798899df9da337ff47a8fb69403009c316f01e7d.tar.gz 42-minishell-798899df9da337ff47a8fb69403009c316f01e7d.tar.bz2 42-minishell-798899df9da337ff47a8fb69403009c316f01e7d.tar.xz 42-minishell-798899df9da337ff47a8fb69403009c316f01e7d.tar.zst 42-minishell-798899df9da337ff47a8fb69403009c316f01e7d.zip |
Merge branch 'leaktarace' of jozanleclerc.xyz:42-minishell into leaktarace
Diffstat (limited to 'src/c_ctrls.c')
-rw-r--r-- | src/c_ctrls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_ctrls.c b/src/c_ctrls.c index af0528e..485fb94 100644 --- a/src/c_ctrls.c +++ b/src/c_ctrls.c @@ -24,11 +24,12 @@ #include "s_destroy.h" #include "u_utils.h" -short c_ctrl_d(t_msh *msh) +short c_ctrl_d(char *line, t_msh *msh) { int tmp; c_set_term_raw(0); + free(line); write(STDERR_FILENO, "exit\n", 5); u_eof_fd(msh->fd); m_dump_hist(msh->curr_hist_ptr, msh); |