[dovecot-cvs] dovecot/src/auth auth-master-connection.c, 1.34,
1.35 auth-request.c, 1.21, 1.22
cras at dovecot.org
cras at dovecot.org
Tue May 17 12:34:40 EEST 2005
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv19791
Modified Files:
auth-master-connection.c auth-request.c
Log Message:
Master connection's USER command was leaking memory (with deliver binary).
Index: auth-master-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-master-connection.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- auth-master-connection.c 26 Apr 2005 11:43:36 -0000 1.34
+++ auth-master-connection.c 17 May 2005 09:34:38 -0000 1.35
@@ -91,6 +91,7 @@
str_append_c(str, '\n');
}
(void)o_stream_send(conn->output, str_data(str), str_len(str));
+ auth_request_unref(auth_request);
}
static int
Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- auth-request.c 26 Apr 2005 11:43:36 -0000 1.21
+++ auth-request.c 17 May 2005 09:34:38 -0000 1.22
@@ -91,7 +91,10 @@
if (--request->refcount > 0)
return TRUE;
- request->mech->auth_free(request);
+ if (request->mech != NULL)
+ request->mech->auth_free(request);
+ else
+ pool_unref(request->pool);
return FALSE;
}
More information about the dovecot-cvs
mailing list