diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-04-11 20:57:13 +0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-04-11 08:57:13 -0400 |
commit | 92241410b5b0591d849443b3023992334a4be0a2 (patch) | |
tree | 0648442194c4a9e4c70ba89591a8bae1188bd9b2 /src/_cffi_src/openssl | |
parent | b839786c26e3d01691d476bf2895f73784256801 (diff) | |
download | cryptography-92241410b5b0591d849443b3023992334a4be0a2.tar.gz cryptography-92241410b5b0591d849443b3023992334a4be0a2.tar.bz2 cryptography-92241410b5b0591d849443b3023992334a4be0a2.zip |
fix a memory leak in AIA parsing (#4836)
* fix a memory leak in AIA parsing
* oops can't remove that
Diffstat (limited to 'src/_cffi_src/openssl')
-rw-r--r-- | src/_cffi_src/openssl/x509v3.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/x509v3.py b/src/_cffi_src/openssl/x509v3.py index 193d2e23..59681206 100644 --- a/src/_cffi_src/openssl/x509v3.py +++ b/src/_cffi_src/openssl/x509v3.py @@ -177,6 +177,7 @@ typedef struct { typedef void (*sk_GENERAL_NAME_freefunc)(GENERAL_NAME *); typedef void (*sk_DIST_POINT_freefunc)(DIST_POINT *); typedef void (*sk_POLICYINFO_freefunc)(POLICYINFO *); +typedef void (*sk_ACCESS_DESCRIPTION_freefunc)(ACCESS_DESCRIPTION *); """ @@ -228,6 +229,8 @@ ACCESS_DESCRIPTION *sk_ACCESS_DESCRIPTION_value( Cryptography_STACK_OF_ACCESS_DESCRIPTION *, int ); void sk_ACCESS_DESCRIPTION_free(Cryptography_STACK_OF_ACCESS_DESCRIPTION *); +void sk_ACCESS_DESCRIPTION_pop_free(Cryptography_STACK_OF_ACCESS_DESCRIPTION *, + sk_ACCESS_DESCRIPTION_freefunc); int sk_ACCESS_DESCRIPTION_push(Cryptography_STACK_OF_ACCESS_DESCRIPTION *, ACCESS_DESCRIPTION *); |