From 8ae44f7aa66b0a12df528ab0bbbfb90f4ec3c5ad Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 22 Jan 2013 08:12:33 -0500 Subject: [PATCH] silly bugfix for the init fail case --- daemon/control_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/control_udp.c b/daemon/control_udp.c index 84cb27928..ee6eac3ff 100644 --- a/daemon/control_udp.c +++ b/daemon/control_udp.c @@ -262,7 +262,7 @@ struct control_udp *control_udp_new(struct poller *p, struct in6_addr ip, u_int1 return c; fail2: - free(c); + obj_put(c); fail: close(fd); return NULL;