diff options
author | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-12 15:55:04 +0000 |
---|---|---|
committer | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-12 15:55:04 +0000 |
commit | 0b845a845811f4b48e5bfdaa1ba1e2fc5f50dccc (patch) | |
tree | ed1265b036070f690985fa83057df9e0f2502ec3 /node.c | |
parent | 4eb345707644e2db631d3af7f455dd976391c466 (diff) |
string.c: fix memory leak in String#crypt
Use ALLOCV to allocate struct crypt_data for slightly cleaner and less
error-prone code. It is currently possible it leaks when an invalid
argument is passed to String#crypt or rb_str_new_cstr() fails to
allocate memory.
SIZEOF_CRYPT_DATA macro in missing/crypt.h is removed since it is not
used any longer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
0 files changed, 0 insertions, 0 deletions