From e53e00c4f9e4f882686cce8c05b43c31840eeabf Mon Sep 17 00:00:00 2001 From: situ Date: Thu, 22 Nov 2012 22:41:36 +0530 Subject: [PATCH] Fixed compilation error in expand.cpp Fixed https://github.com/fish-shell/fish-shell/issues/401 --- expand.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/expand.cpp b/expand.cpp index 290d8d602..4c3dd9291 100644 --- a/expand.cpp +++ b/expand.cpp @@ -517,12 +517,7 @@ bool process_iterator_t::next_process(wcstring *out_str, pid_t *out_pid) signal_unblock(); /* The command line needs to be escaped */ - wchar_t *first_arg = tok_first(full_command_line.c_str()); - if (first_arg) - { - cmd = first_arg; - free(first_arg); - } + cmd = tok_first(full_command_line.c_str()); } #ifdef SunOS else if ((cmdfile=wfopen(path + L"/psinfo", "r")))