diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-08-28 12:11:23 +0930 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-08-28 14:10:22 +1000 |
commit | 76d91156c82e20bbd68c752376cb814d71759033 (patch) | |
tree | cca83dcf6704d967ae6c5c170166198c2591a7f0 | |
parent | be4ac227842530d484659f2db683453366326d8b (diff) | |
download | samba-76d91156c82e20bbd68c752376cb814d71759033.tar.gz samba-76d91156c82e20bbd68c752376cb814d71759033.tar.bz2 samba-76d91156c82e20bbd68c752376cb814d71759033.zip |
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 <rusty@rustcorp.com.au>
-rw-r--r-- | lib/tevent/tevent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index 0c02e46f3c..56d0da3927 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; } |