URL:
https://github.com/SSSD/sssd/pull/930
Title: #930: [WiP] SBUS: remove dbus fd from tevent loop when watch is removed
pbrezina commented:
"""
Do you remember what was the case when valgrind complained? (i.e. how
to reproduce)
No... but I think it was visible during shutdown or something like that. Try to revert the
patch (or whole commit history) and run it under valgrind.
Do you know if order of `talloc_free(watch_fd->fdevent)` and
`talloc_free(watch_fd)` was important to fix complain?
I mean, would calling `talloc_free(watch_fd->fdevent)` from `watch_destructor()` or
after `talloc_free(watch_fd)` make valgrding happy?
I do not remember if I tried to put it in the destructor.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/930#issuecomment-550984174