diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-24 21:57:52 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-10-03 15:02:15 +0900 |
commit | cf2d4f43a98bdc37224460a0b1851a0dc7ced2e8 (patch) | |
tree | 82755c6e3a29e6359891cc4837977ee2f3155d94 /ext/openssl/ossl_cipher.c | |
parent | 0954e9316fdfdda920561ea362f235c10ceebc04 (diff) | |
download | ruby-openssl-cf2d4f43a98bdc37224460a0b1851a0dc7ced2e8.tar.gz |
Avoid memory leak on rb_str_new()
Use ossl_membio2str() to convert a mem BIO to Ruby String. This fixes
possible memory leak on rb_str_new() failure, and also reduces code.
Diffstat (limited to 'ext/openssl/ossl_cipher.c')
0 files changed, 0 insertions, 0 deletions