diff options
author | Richard Levitte <levitte@openssl.org> | 2001-04-03 09:42:36 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-04-03 09:42:36 +0000 |
commit | 4e2a08ddd47ccac15aa8c1a4700cfb552e9d1734 (patch) | |
tree | 2af9dd652f65e3bd3fb9ed38b1edd45fa788effe /crypto/pkcs12/p12_kiss.c | |
parent | 61e2c34a104aef8748e8998ce31248fe37e211a4 (diff) |
Plug a memory leak. Spotted by "Shijin" <shijin@comex.com>
Diffstat (limited to 'crypto/pkcs12/p12_kiss.c')
-rw-r--r-- | crypto/pkcs12/p12_kiss.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/pkcs12/p12_kiss.c b/crypto/pkcs12/p12_kiss.c index 62272a2d18..885087ad00 100644 --- a/crypto/pkcs12/p12_kiss.c +++ b/crypto/pkcs12/p12_kiss.c @@ -264,6 +264,7 @@ static int parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, if (lkey) { *keymatch |= MATCH_CERT; if (cert) *cert = x509; + else X509_free(x509); } else { if(ca) sk_X509_push (*ca, x509); else X509_free(x509); |