From 50834df3ca08fa9de1b9830d49524c1055ec9cbd Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 10 Jun 2021 13:30:39 -0400 Subject: [PATCH] TT#14008 call statistics_free after codecs_cleanup Some codec handlers hold references to objects held within the statistics hash table, therefore we must free the statistics after all codec handlers have been released. Change-Id: I3832dbeeaaf21d4a82be2dc2c842718415fd46f7 --- daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/main.c b/daemon/main.c index 10bd2f4d4..009872a41 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1208,12 +1208,12 @@ int main(int argc, char **argv) { jitter_buffer_init_free(); media_player_free(); codeclib_free(); - statistics_free(); call_interfaces_free(); ice_free(); dtls_cert_free(); control_ng_cleanup(); codecs_cleanup(); + statistics_free(); redis_close(rtpe_redis); if (rtpe_redis_write != rtpe_redis)