From: Rusty Russell Date: Fri, 28 Aug 2009 02:41:23 +0000 (+0930) Subject: lib/tevent: close pipe_fds on event_context destruction X-Git-Tag: tevent-0.9.8~139 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=76d91156c82e20bbd68c752376cb814d71759033 lib/tevent: close pipe_fds on event_context destruction The "hack_fds" were never closed before; now they're inside event_context they should be closed when that is destroyed. Signed-off-by: Rusty Russell --- diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index 0c02e46f3ca..56d0da39276 100644 --- a/lib/tevent/tevent.c +++ b/lib/tevent/tevent.c @@ -148,6 +148,8 @@ int tevent_common_context_destructor(struct tevent_context *ev) if (ev->pipe_fde) { talloc_free(ev->pipe_fde); + close(ev->pipe_fds[0]); + close(ev->pipe_fds[1]); ev->pipe_fde = NULL; }