From c237b5119e63cf9dfe2be8954cee6f5675c70e3b Mon Sep 17 00:00:00 2001 From: gwojda Date: Wed, 22 Mar 2017 15:49:31 +0100 Subject: [PATCH] sans le debug et avec un free c'est mieux --- 42sh/src/completion/c_match.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/42sh/src/completion/c_match.c b/42sh/src/completion/c_match.c index 7daa6f1d..07391a64 100644 --- a/42sh/src/completion/c_match.c +++ b/42sh/src/completion/c_match.c @@ -6,7 +6,7 @@ /* By: alao +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/10/15 13:27:14 by alao #+# #+# */ -/* Updated: 2017/03/22 15:46:22 by gwojda ### ########.fr */ +/* Updated: 2017/03/22 15:49:09 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -69,9 +69,7 @@ int c_matching(t_data *s, t_comp *c) { char *current_word; - DG("c->rcmd = \"%s\"", c->rcmd); current_word = c_current_words(); - DG("current_word = \"%s\"", current_word); if (ft_strchr(c->rcmd, '/')) c_seek_abs_path(c, current_word); else if (ft_strchr(c->rcmd, '$')) @@ -80,6 +78,7 @@ int c_matching(t_data *s, t_comp *c) c_seek_binary(s, c); else c_seek_files(s, c, current_word); + ft_strdel(¤t_word); if (s->comp && s->comp->lst) { c_sizing(c);