dovecot-2.0: *-login: Fixed a minor memory leak.

dovecot at dovecot.org dovecot at dovecot.org
Tue Dec 8 22:08:47 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/328e42919f2f
changeset: 10430:328e42919f2f
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Dec 08 15:08:41 2009 -0500
description:
*-login: Fixed a minor memory leak.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/login-common/ssl-proxy-openssl.c |    2 +-

diffs (12 lines):

diff -r 3badaa16d524 -r 328e42919f2f src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c	Tue Dec 08 15:08:20 2009 -0500
+++ b/src/login-common/ssl-proxy-openssl.c	Tue Dec 08 15:08:41 2009 -0500
@@ -1086,7 +1086,7 @@ ssl_server_context_init(const struct log
 	STACK_OF(X509_NAME) *xnames;
 
 	pool = pool_alloconly_create("ssl server context", 2048);
-	ctx = i_new(struct ssl_server_context, 1);
+	ctx = p_new(pool, struct ssl_server_context, 1);
 	ctx->pool = pool;
 	ctx->cert = p_strdup(pool, set->ssl_cert);
 	ctx->key = p_strdup(pool, set->ssl_key);


More information about the dovecot-cvs mailing list