Skip to content

Commit c7edfc3

Browse files
committed
merge revision(s) r48690: [Backport ruby#10563]
* win32/win32.c (w32_spawn): `v2` is used not only for `shell` but also `cmd`, so must not free before using `cmd`. [ruby-core:66648] [Bug ruby#10563] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@49997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 7cd92ce commit c7edfc3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Wed Mar 18 02:42:37 2015 NAKAMURA Usaku <usa@ruby-lang.org>
2+
3+
* win32/win32.c (w32_spawn): `v2` is used not only for `shell` but also
4+
`cmd`, so must not free before using `cmd`.
5+
[ruby-core:66648] [Bug #10563]
6+
17
Wed Mar 18 02:40:18 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
28

39
* win32/win32.c (constat_reset): do nothing on non-standard

version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.5"
22
#define RUBY_RELEASE_DATE "2015-03-18"
3-
#define RUBY_PATCHLEVEL 318
3+
#define RUBY_PATCHLEVEL 319
44

55
#define RUBY_RELEASE_YEAR 2015
66
#define RUBY_RELEASE_MONTH 3

win32/win32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1320,9 +1320,9 @@ w32_spawn(int mode, const char *cmd, const char *prog, UINT cp)
13201320
}
13211321

13221322
if (!e && shell && !(wshell = mbstr_to_wstr(cp, shell, -1, NULL))) e = E2BIG;
1323-
if (v2) ALLOCV_END(v2);
13241323
if (cmd_sep) *cmd_sep = sep;
13251324
if (!e && cmd && !(wcmd = mbstr_to_wstr(cp, cmd, -1, NULL))) e = E2BIG;
1325+
if (v2) ALLOCV_END(v2);
13261326
if (v) ALLOCV_END(v);
13271327

13281328
if (!e) {

0 commit comments

Comments
 (0)