diff src/config/main.c @ 11388:b8d3c96e61a7 HEAD

lib-master API changed to avoid accidentally leaking client connections. This change also fixes many such leaks.
author Timo Sirainen <tss@iki.fi>
date Thu, 27 May 2010 12:16:36 +0100
parents 3fc759d5e736
children 447bce266022
line wrap: on
line diff
--- a/src/config/main.c	Thu May 27 11:36:07 2010 +0100
+++ b/src/config/main.c	Thu May 27 12:16:36 2010 +0100
@@ -8,8 +8,9 @@
 #include "config-parser.h"
 #include "config-request.h"
 
-static void client_connected(const struct master_service_connection *conn)
+static void client_connected(struct master_service_connection *conn)
 {
+	master_service_client_connection_accept(conn);
 	config_connection_create(conn->fd);
 }