[dovecot-cvs] dovecot/src/imap-login client.c, 1.51.2.7, 1.51.2.8 imap-proxy.c, 1.7.2.4, 1.7.2.5

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


Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv19676/imap-login

Modified Files:
      Tag: branch_1_0
	client.c imap-proxy.c 
Log Message:
Memory leak fix



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.51.2.7
retrieving revision 1.51.2.8
diff -u -d -r1.51.2.7 -r1.51.2.8
--- client.c	7 Nov 2006 15:06:17 -0000	1.51.2.7
+++ client.c	7 Nov 2006 15:19:30 -0000	1.51.2.8
@@ -499,9 +499,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: imap-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/imap-proxy.c,v
retrieving revision 1.7.2.4
retrieving revision 1.7.2.5
diff -u -d -r1.7.2.4 -r1.7.2.5
--- imap-proxy.c	7 Nov 2006 15:06:17 -0000	1.7.2.4
+++ imap-proxy.c	7 Nov 2006 15:19:30 -0000	1.7.2.5
@@ -142,7 +142,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