trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From masa...@apache.org
Subject [trafficserver] branch master updated: Fix memory leak of HPACK
Date Thu, 16 Apr 2020 22:34:09 GMT
This is an automated email from the ASF dual-hosted git repository.

masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new ac5db54  Fix memory leak of HPACK
ac5db54 is described below

commit ac5db54d6f725fa0c64a931054dc15ea671f3dc1
Author: Masaori Koshiba <masaori@apache.org>
AuthorDate: Thu Apr 16 09:33:23 2020 +0900

    Fix memory leak of HPACK
---
 proxy/http2/HPACK.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxy/http2/HPACK.cc b/proxy/http2/HPACK.cc
index 4dcf729..2ebaaee 100644
--- a/proxy/http2/HPACK.cc
+++ b/proxy/http2/HPACK.cc
@@ -463,6 +463,7 @@ HpackDynamicTable::_mime_hdr_gc()
   } else {
     if (this->_mhdr_old->fields_count() == 0) {
       this->_mhdr_old->destroy();
+      delete this->_mhdr_old;
       this->_mhdr_old = nullptr;
     }
   }


Mime
View raw message