mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* hash.c (env_rassoc): remove access to free'd environment on mswin32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
03a4a0f1d2
commit
a73ec67e8d
3 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Feb 06 00:24:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* hash.c (env_rassoc): remove access to free'd environment on mswin32.
|
||||
|
||||
Tue Feb 05 21:57:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* vm.c (rb_call_super): pass a passed block when super is called via
|
||||
|
|
3
hash.c
3
hash.c
|
@ -2372,8 +2372,9 @@ env_rassoc(VALUE dmy, VALUE obj)
|
|||
if (s++) {
|
||||
long len = strlen(s);
|
||||
if (RSTRING_LEN(obj) == len && strncmp(s, RSTRING_PTR(obj), len) == 0) {
|
||||
VALUE result = rb_assoc_new(rb_tainted_str_new(*env, s-*env-1), obj);
|
||||
FREE_ENVIRON(environ);
|
||||
return rb_assoc_new(rb_tainted_str_new(*env, s-*env-1), obj);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
env++;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#define RUBY_VERSION "1.9.0"
|
||||
#define RUBY_RELEASE_DATE "2008-02-05"
|
||||
#define RUBY_RELEASE_DATE "2008-02-06"
|
||||
#define RUBY_VERSION_CODE 190
|
||||
#define RUBY_RELEASE_CODE 20080205
|
||||
#define RUBY_RELEASE_CODE 20080206
|
||||
#define RUBY_PATCHLEVEL 0
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
|
@ -9,7 +9,7 @@
|
|||
#define RUBY_VERSION_TEENY 0
|
||||
#define RUBY_RELEASE_YEAR 2008
|
||||
#define RUBY_RELEASE_MONTH 2
|
||||
#define RUBY_RELEASE_DAY 5
|
||||
#define RUBY_RELEASE_DAY 6
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Loading…
Reference in a new issue