diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-06 13:21:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-06 13:21:18 +0000 |
commit | fe979e5bce4d5606d491ed25e603f5504a20c500 (patch) | |
tree | f2f389c56eeaa4b71914477ab5286f7ff565252a /BSDL | |
parent | f15d04358827d60a708f296973c420b2c031ac5e (diff) | |
download | ruby-fe979e5bce4d5606d491ed25e603f5504a20c500.tar.gz |
internal.h: fix potential memory leak
* internal.h (rb_imemo_tmpbuf_auto_free_pointer_new_from_an_RString):
create tmpbuf to keep the pointer before xmalloc which can raise
a NoMemoryError exception. extracted from
https://github.com/bear-metal/ruby/tree/transient-imemo-tmpbuf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'BSDL')
0 files changed, 0 insertions, 0 deletions