[dovecot-cvs] dovecot/src/pop3-login client.c, 1.57, 1.58 pop3-proxy.c, 1.13, 1.14

tss at dovecot.org tss at dovecot.org
Tue Nov 7 15:19:40 UTC 2006


Update of /var/lib/cvs/dovecot/src/pop3-login
In directory talvi:/tmp/cvs-serv19678/pop3-login

Modified Files:
	client.c pop3-proxy.c 
Log Message:
Memory leak fix



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- client.c	7 Nov 2006 15:06:26 -0000	1.57
+++ client.c	7 Nov 2006 15:19:36 -0000	1.58
@@ -390,9 +390,6 @@
 	if (client->proxy != NULL) {
 		login_proxy_free(client->proxy);
 		client->proxy = NULL;
-
-		i_assert(client->refcount > 1);
-		client_unref(client);
 	}
 
 	if (client->common.proxy != NULL)

Index: pop3-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/pop3-proxy.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- pop3-proxy.c	7 Nov 2006 15:06:26 -0000	1.13
+++ pop3-proxy.c	7 Nov 2006 15:19:36 -0000	1.14
@@ -157,7 +157,6 @@
 		return -1;
 	}
 
-	client_ref(client);
 	client->proxy = login_proxy_new(&client->common, host, port,
 					proxy_input, client);
 	if (client->proxy == NULL)



More information about the dovecot-cvs mailing list