From 2c729bf9e69b34ed80337a813f4c5ea37c42d854 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 6 Mar 2011 23:04:46 +0100 Subject: [PATCH] don't leak SSL objects --- src/drv_imap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drv_imap.c b/src/drv_imap.c index d8acc4f..9e0ad38 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1134,6 +1134,8 @@ imap_cancel_store( store_t *gctx ) if (ctx->buf.sock.fd >= 0) close( ctx->buf.sock.fd ); #ifdef HAVE_LIBSSL + if (ctx->buf.sock.ssl) + SSL_free( ctx->buf.sock.ssl ); if (ctx->SSLContext) SSL_CTX_free( ctx->SSLContext ); #endif