From d2ae3852c54f0b12ce1843ea5d670ff4aa5e1b0f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 11 Mar 2015 06:31:53 -0700 Subject: * stream.c (run): In Windows version, fix nasty corruption bug: we were freeing C strings that were not duplicated, but only borrowed from string objects. --- ChangeLog | 6 ++++++ stream.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 811376a7..8109c752 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-03-11 Kaz Kylheku + + * stream.c (run): In Windows version, fix nasty corruption bug: + we were freeing C strings that were not duplicated, but only borrowed + from string objects. + 2015-03-11 Kaz Kylheku * stream.c (open_process, run): Eliminate utf8name local variable diff --git a/stream.c b/stream.c index b29098a0..94eaf2e4 100644 --- a/stream.c +++ b/stream.c @@ -2457,8 +2457,6 @@ static val run(val command, val args) status = _wspawnvp(_P_WAIT, c_str(command), wargv); - for (i = 0; i < nargs; i++) - free(strip_qual(wchar_t *, wargv[i])); free(strip_qual(wchar_t **, wargv)); rel1(&args); -- cgit v1.2.3