From 47fb7c22f8c9d75058c2a7471bd2be3b76145ff2 Mon Sep 17 00:00:00 2001 From: salad Date: Fri, 18 Dec 2020 16:30:40 +0100 Subject: nolik --- src/c_ctrls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/c_ctrls.c') 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); -- cgit v1.2.3