mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
tevent: Fix a memleak on FreeBSD
FreeBSD has malloc'ed memory attached to mutexes. We need to clean this up. valgrind really helped here Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
ca71576241
commit
00390ae27b
@ -341,6 +341,11 @@ int tevent_common_context_destructor(struct tevent_context *ev)
|
||||
|
||||
DLIST_REMOVE(ev->threaded_contexts, tctx);
|
||||
}
|
||||
|
||||
ret = pthread_mutex_destroy(&ev->scheduled_mutex);
|
||||
if (ret != 0) {
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
|
||||
tevent_common_wakeup_fini(ev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user