lib/tevent: close pipe_fds on event_context destruction
[ira/wip.git] / lib / tevent / tevent.c
index 0c02e46f3ca16e6478fe820ae459d5272e4dfcbc..56d0da39276ee3489b59b8d81ab495d601266903 100644 (file)
@@ -148,6 +148,8 @@ int tevent_common_context_destructor(struct tevent_context *ev)
 
        if (ev->pipe_fde) {
                talloc_free(ev->pipe_fde);
 
        if (ev->pipe_fde) {
                talloc_free(ev->pipe_fde);
+               close(ev->pipe_fds[0]);
+               close(ev->pipe_fds[1]);
                ev->pipe_fde = NULL;
        }
 
                ev->pipe_fde = NULL;
        }