From: Oswald B. <os...@us...> - 2011-03-27 10:03:36
|
commit 22287acb072ca01401380a44ce13bf5840fc5dce Author: Oswald Buddenhagen <os...@kd...> Date: Sun Mar 6 23:04:46 2011 +0100 don't leak SSL objects src/drv_imap.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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 |