From 31ddb457bfe55171e657ec04d57defdf7d460370 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Wed, 3 Aug 2016 21:17:11 +0900 Subject: 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. --- ext/openssl/ossl_x509.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/openssl/ossl_x509.h') 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); /* -- cgit v1.2.3