diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-03 21:17:11 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-16 14:22:07 +0900 |
commit | 31ddb457bfe55171e657ec04d57defdf7d460370 (patch) | |
tree | 21595bf21304c6823f5ae885dbb5f4532afba8f5 /ext/openssl/ossl_x509.h | |
parent | 2cb131e1ccdb6536ef3516b49ab90775688db3f3 (diff) | |
download | ruby-openssl-31ddb457bfe55171e657ec04d57defdf7d460370.tar.gz |
x509req: fix memory leaks in #set_attributes and #add_attribute
X509_REQ_add1_attr() dups the X509_ATTRIBUTE given as the argument, so
we don't need to duplicate beforehand.
Diffstat (limited to 'ext/openssl/ossl_x509.h')
-rw-r--r-- | ext/openssl/ossl_x509.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_x509.h b/ext/openssl/ossl_x509.h index 57680485..72cf73f4 100644 --- a/ext/openssl/ossl_x509.h +++ b/ext/openssl/ossl_x509.h @@ -31,7 +31,7 @@ extern VALUE cX509Attr; extern VALUE eX509AttrError; VALUE ossl_x509attr_new(X509_ATTRIBUTE *); -X509_ATTRIBUTE *DupX509AttrPtr(VALUE); +X509_ATTRIBUTE *GetX509AttrPtr(VALUE); void Init_ossl_x509attr(void); /* |