Quellcode durchsuchen

don't leak SSL objects

Oswald Buddenhagen vor 14 Jahren
Ursprung
Commit
2c729bf9e6
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      src/drv_imap.c

+ 2 - 0
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