diff options
author | 2015-02-14 15:17:52 +0000 | |
---|---|---|
committer | 2015-02-14 15:17:52 +0000 | |
commit | 9126622ffd5c7cd6dd7fcfe9948b90fd0878dd3c (patch) | |
tree | 81499ca3d086e316afbfe14da30efaf60d4a4c7b /lib/libssl/src | |
parent | Check i2d_name_canon() for failure (negative return). Coverity CID 78888. (diff) | |
download | wireguard-openbsd-9126622ffd5c7cd6dd7fcfe9948b90fd0878dd3c.tar.xz wireguard-openbsd-9126622ffd5c7cd6dd7fcfe9948b90fd0878dd3c.zip |
Memory leak upon error; Coverity CID 78857
ok doug@ jsing@
CVy: Committing in .
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/crypto/x509v3/v3_cpols.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/x509v3/v3_cpols.c b/lib/libssl/src/crypto/x509v3/v3_cpols.c index f024039fdd6..65916778aa7 100644 --- a/lib/libssl/src/crypto/x509v3/v3_cpols.c +++ b/lib/libssl/src/crypto/x509v3/v3_cpols.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_cpols.c,v 1.18 2015/02/10 11:22:22 jsing Exp $ */ +/* $OpenBSD: v3_cpols.c,v 1.19 2015/02/14 15:17:52 miod Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -461,6 +461,9 @@ notice_section(X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *unot, int ia5org) X509V3err(X509V3_F_NOTICE_SECTION, X509V3_R_INVALID_NUMBERS); X509V3_conf_err(cnf); + if (nos != NULL) + sk_CONF_VALUE_pop_free(nos, + X509V3_conf_free); goto err; } ret = nref_nos(nref->noticenos, nos); |