This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new c6e73b6  leaks in logs (#7172)
c6e73b6 is described below

commit c6e73b68a03eea683543a79af86a4d736de25d5f
Author: Fei Deng <[email protected]>
AuthorDate: Wed Sep 9 13:50:23 2020 -0500

    leaks in logs (#7172)
    
    (cherry picked from commit e4e3ea31667c45af4cadbff5731bddfeb91b252f)
---
 src/tscore/BaseLogFile.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tscore/BaseLogFile.cc b/src/tscore/BaseLogFile.cc
index 26f567e..280ad17 100644
--- a/src/tscore/BaseLogFile.cc
+++ b/src/tscore/BaseLogFile.cc
@@ -361,6 +361,8 @@ BaseLogFile::close_file()
     ret       = fclose(m_fp);
     m_fp      = nullptr;
     m_is_init = false;
+    delete m_meta_info;
+    m_meta_info = nullptr;
   }
   return ret;
 }

Reply via email to