don't leak SSL objects

This commit is contained in:
Oswald Buddenhagen 2011-03-06 23:04:46 +01:00
parent 296ac0364c
commit 2c729bf9e6

View File

@ -1134,6 +1134,8 @@ imap_cancel_store( store_t *gctx )
if (ctx->buf.sock.fd >= 0) if (ctx->buf.sock.fd >= 0)
close( ctx->buf.sock.fd ); close( ctx->buf.sock.fd );
#ifdef HAVE_LIBSSL #ifdef HAVE_LIBSSL
if (ctx->buf.sock.ssl)
SSL_free( ctx->buf.sock.ssl );
if (ctx->SSLContext) if (ctx->SSLContext)
SSL_CTX_free( ctx->SSLContext ); SSL_CTX_free( ctx->SSLContext );
#endif #endif