summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-01-09 14:43:02 +0100
committerJeremy Allison <jra@samba.org>2020-01-09 18:55:36 +0000
commitd78b4a841e2ea7b279ae1f3039216723d24220d4 (patch)
tree62c6f9b90dd5b72cb5c5a8eee4d1172194297a49 /source3/printing
parent1cd20731ab1e10d1b68b649c8588bbccb624c07e (diff)
downloadsamba-d78b4a841e2ea7b279ae1f3039216723d24220d4.tar.gz
printing: Avoid EBADF from EPOLL_CTL_DEL
TALLOC_FREE the fde before closing the fd. Otherwise the fde destructor tries to remove a nonexisting fd from the epoll set. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/print_cups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 96bda2d34b6..b52f7e25da5 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -573,9 +573,9 @@ static void cups_async_callback(struct tevent_context *event_ctx,
err_out:
pcap_cache_destroy_specific(&tmp_pcap_cache);
TALLOC_FREE(frame);
+ TALLOC_FREE(cache_fd_event);
close(cb_args->pipe_fd);
TALLOC_FREE(cb_args);
- TALLOC_FREE(cache_fd_event);
}
bool cups_cache_reload(struct tevent_context *ev,