From a1f538224043e11f0c0104a835c0a2c10704e8dd Mon Sep 17 00:00:00 2001 From: Xiaoniu <495810242@qq.com> Date: Thu, 13 May 2021 21:07:37 +0800 Subject: [PATCH] fix bug: memory leak in SrsStatisticClient (#2352) --- trunk/src/app/srs_app_statistic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/src/app/srs_app_statistic.cpp b/trunk/src/app/srs_app_statistic.cpp index 22c4f39f6..aa055d8b8 100644 --- a/trunk/src/app/srs_app_statistic.cpp +++ b/trunk/src/app/srs_app_statistic.cpp @@ -215,6 +215,7 @@ SrsStatisticClient::SrsStatisticClient() SrsStatisticClient::~SrsStatisticClient() { + srs_freep(req); } srs_error_t SrsStatisticClient::dumps(SrsJsonObject* obj)