summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 13:05:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 13:05:31 +0000
commit4e43e7ad0deb58a79e3d687f3c702304d6cf135a (patch)
tree9cc232b056b565187ce26578eae6c5116ec2ddff
parentd57e043ab508d2ea379dcc1811e35b73abb8072a (diff)
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
-rw-r--r--ChangeLog5
-rw-r--r--win32/win32.c1
2 files changed, 6 insertions, 0 deletions
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 <nobu@ruby-lang.org>
+
+ * 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 <nobu@ruby-lang.org>
* 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