mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
pthreadpool: reset monitor_fd after calling tevent_fd_set_auto_close()
This tries to convince Coverity that we don't have a resource leak: CID 1438157: (RESOURCE_LEAK) Handle variable "monitor_fd" going out of scope leaks the handle. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
6da0d68f49
commit
f68b5ee75f
@ -719,6 +719,7 @@ static int pthreadpool_tevent_register_ev(
|
||||
return ENOMEM;
|
||||
}
|
||||
tevent_fd_set_auto_close(glue->fde);
|
||||
monitor_fd = -1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user