changeset 4401:10cdcfe98cfc HEAD

Fixed memory leak in error handling.
author Timo Sirainen <tss@iki.fi>
date Sat, 17 Jun 2006 18:14:15 +0300
parents 593523f53500
children 8846e6be0e02
files src/auth/auth-request-handler.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-request-handler.c	Sat Jun 17 18:06:20 2006 +0300
+++ b/src/auth/auth-request-handler.c	Sat Jun 17 18:14:15 2006 +0300
@@ -433,6 +433,7 @@
 			"%u.%u", handler->client_pid, client_id);
 		str_printfa(reply, "NOTFOUND\t%u", id);
 		handler->master_callback(str_c(reply), master);
+		auth_request_unref(&request);
 	} else {
 		/* the request isn't being referenced anywhere anymore,
 		   so we can do a bit of kludging.. replace the request's