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 bb2054b Free TSMgmtString after using it. bb2054b is described below commit bb2054bc24b9ec4f446bf6e89fdf2bb735360f81 Author: David Calavera <david.calav...@gmail.com> AuthorDate: Tue Feb 4 13:23:50 2020 -0800 Free TSMgmtString after using it. Fixes memory leak. Signed-off-by: David Calavera <david.calav...@gmail.com> (cherry picked from commit 544d29bde833a5cad673bb3ccf344f3da8bec387) --- plugins/compress/misc.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/compress/misc.cc b/plugins/compress/misc.cc index 5770844..4bf579c 100644 --- a/plugins/compress/misc.cc +++ b/plugins/compress/misc.cc @@ -142,6 +142,7 @@ init_hidden_header_name() hidden_header_name = static_cast<char *>(TSmalloc(hidden_header_name_len + 1)); hidden_header_name[hidden_header_name_len] = 0; sprintf(hidden_header_name, "x-accept-encoding-%s", result); + TSfree(result); } return hidden_header_name; }