зеркало из https://github.com/github/ruby.git
* vm.c (thread_free): free altstack to prevent memory leak. a patch
from Tomoyuki Chikanaga in [ruby-dev:41815]. [Bug #3537] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0fa3c65b66
Коммит
68ab3ede30
|
@ -1,3 +1,8 @@
|
|||
Tue Jul 6 00:34:50 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* vm.c (thread_free): free altstack to prevent memory leak. a patch
|
||||
from Tomoyuki Chikanaga in [ruby-dev:41815]. [Bug #3537]
|
||||
|
||||
Tue Jul 6 00:29:27 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* string.c (NONASCII_MASK): NONASCII_MASK must be unsigned.
|
||||
|
|
5
vm.c
5
vm.c
|
@ -1726,6 +1726,11 @@ thread_free(void *ptr)
|
|||
RUBY_GC_INFO("main thread\n");
|
||||
}
|
||||
else {
|
||||
#ifdef USE_SIGALTSTACK
|
||||
if (th->altstack) {
|
||||
free(th->altstack);
|
||||
}
|
||||
#endif
|
||||
ruby_xfree(ptr);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче