diff options
author | Sumit Bose <sbose@redhat.com> | 2010-02-03 11:54:46 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-03 10:35:18 -0500 |
commit | 067fbea128ea5f6298feb37f9aaab347afd59d8a (patch) | |
tree | cdfcd2ab310a249dc510be271dfb7d7e547f3569 /server/sbus | |
parent | f77224d2141c713afefd5f953515ad1e42dca3e5 (diff) | |
download | sssd-067fbea128ea5f6298feb37f9aaab347afd59d8a.tar.gz sssd-067fbea128ea5f6298feb37f9aaab347afd59d8a.tar.bz2 sssd-067fbea128ea5f6298feb37f9aaab347afd59d8a.zip |
Make resolve and failover test work with CK_FORK=no
The leak checking code which is used by the resolve and failover tests
frees talloc's autofree context which is not recommended. As a
consequence the initialization of tevent failed when it was called by
the second test and CF_FORK=no, because it holds some data in the
autofree context.
This patch introduces a global talloc context which should be uses by
the test as the root of their memory hierarchy instead of NULL. This
global context is used in the leak checking routines.
Not all types of memory leaks can be detected by the new version , it is
recommended to use valgrind or similar tools additionally.
Diffstat (limited to 'server/sbus')
0 files changed, 0 insertions, 0 deletions