printing: Avoid EBADF from EPOLL_CTL_DEL
commitd78b4a841e2ea7b279ae1f3039216723d24220d4
authorVolker Lendecke <vl@samba.org>
Thu, 9 Jan 2020 13:43:02 +0000 (9 14:43 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 9 Jan 2020 18:55:36 +0000 (9 18:55 +0000)
tree62c6f9b90dd5b72cb5c5a8eee4d1172194297a49
parent1cd20731ab1e10d1b68b649c8588bbccb624c07e
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>
source3/printing/print_cups.c