diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-02-15 21:05:21 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-02-15 21:05:21 +0000 |
commit | a8236c8c322101c273d14c62282f264555e147c4 (patch) | |
tree | 6ec0e1acab729eac8ae5a1f7dd26428c4cf7a9ee /apps/sc.c | |
parent | 1750ebcba914d87602007447433529f871d088f5 (diff) | |
download | openssl-a8236c8c322101c273d14c62282f264555e147c4.tar.gz |
Fix various memory leaks in SSL, apps and DSA
Diffstat (limited to 'apps/sc.c')
-rw-r--r-- | apps/sc.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -770,8 +770,12 @@ int full; SSL_CIPHER_get_version(c), SSL_CIPHER_get_name(c)); if (peer != NULL) + { + EVP_PKEY *pktmp; BIO_printf(bio,"Server public key is %d bit\n", - EVP_PKEY_bits(X509_get_pubkey(peer))); + EVP_PKEY_bits(pktmp)); + EVP_PKEY_free(pktmp); + } SSL_SESSION_print(bio,SSL_get_session(s)); BIO_printf(bio,"---\n"); if (peer != NULL) |