aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar situ <situ@situ-ThinkPad-T430.(none)>2012-11-22 22:41:36 +0530
committerGravatar situ <situ@situ-ThinkPad-T430.(none)>2012-11-22 22:41:36 +0530
commite53e00c4f9e4f882686cce8c05b43c31840eeabf (patch)
treeaa5723b0d1b739c408b1e47193bd9f41568889b7
parent90495f3ac544ba89a3f7063de6e1fb4cd74872a7 (diff)
Fixed compilation error in expand.cpp
-rw-r--r--expand.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/expand.cpp b/expand.cpp
index 290d8d60..4c3dd929 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")))