1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

Fix: Fixed memory leak with filters in objecthandlers

This commit is contained in:
Philipp Schafft 2019-07-08 07:55:23 +00:00
parent 0f693550d6
commit cd500b0213

View File

@ -31,6 +31,9 @@ static void __free(igloo_ro_t self)
igloo_objecthandler_t *handler = igloo_RO_TO_TYPE(self, igloo_objecthandler_t);
igloo_thread_rwlock_wlock(&(handler->rwlock));
igloo_ro_unref(handler->filter_a);
igloo_ro_unref(handler->filter_b);
igloo_ro_unref(handler->filter_list);
igloo_thread_rwlock_unlock(&(handler->rwlock));
igloo_thread_rwlock_destroy(&(handler->rwlock));