You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by os...@apache.org on 2012/09/10 10:48:33 UTC
git commit: TS-1455 memory leak when using the gzip plugin
Updated Branches:
refs/heads/master d8c5ac91d -> d0a57a7e3
TS-1455 memory leak when using the gzip plugin
this fixes a leak when etags are present in the response header
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d0a57a7e
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d0a57a7e
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d0a57a7e
Branch: refs/heads/master
Commit: d0a57a7e3de8f0df8062cf5167b8356cf0ba5c78
Parents: d8c5ac9
Author: Otto van der Schaaf <os...@apache.org>
Authored: Mon Sep 10 10:41:31 2012 +0200
Committer: Otto van der Schaaf <os...@apache.org>
Committed: Mon Sep 10 10:47:48 2012 +0200
----------------------------------------------------------------------
plugins/experimental/gzip/gzip.cc | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d0a57a7e/plugins/experimental/gzip/gzip.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/gzip/gzip.cc b/plugins/experimental/gzip/gzip.cc
index 895f4e0..ef37ed8 100644
--- a/plugins/experimental/gzip/gzip.cc
+++ b/plugins/experimental/gzip/gzip.cc
@@ -174,9 +174,8 @@ gzip_transform_init(TSCont contp, GzipData * data)
if (changetag) {
TSMimeHdrFieldValueAppend(bufp, hdr_loc, ce_loc, 0, "-df", 3);
}
-
- TSHandleMLocRelease(bufp, hdr_loc, ce_loc);
}
+ TSHandleMLocRelease(bufp, hdr_loc, ce_loc);
}
TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc);