1
0
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:
Volker Lendecke 2017-05-24 16:21:40 +02:00 committed by Jeremy Allison
parent ca71576241
commit 00390ae27b

View File

@ -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);