From 4e43e7ad0deb58a79e3d687f3c702304d6cf135a Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 7 Sep 2015 13:05:31 +0000 Subject: [PATCH] win32.c: use plain strdup * win32/win32.c (insert): should use plain strdup() instead of ruby_strdup() at startup time, and plain free()ed in cmdglob(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ win32/win32.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 571a8a8368..392c8bfaa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 7 22:05:28 2015 Nobuyoshi Nakada + + * win32/win32.c (insert): should use plain strdup() instead of + ruby_strdup() at startup time, and plain free()ed in cmdglob(). + Mon Sep 7 16:50:07 2015 Nobuyoshi Nakada * vm_core.h (rb_vm_struct): define objspace always regardless diff --git a/win32/win32.c b/win32/win32.c index 2a58876c4d..42ff582fef 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -90,6 +90,7 @@ static char *w32_getenv(const char *name, UINT cp); #undef close #undef setsockopt #undef dup2 +#undef strdup #if RUBY_MSVCRT_VERSION >= 140 # define _filbuf _fgetc_nolock