You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ez...@apache.org on 2019/06/07 14:37:05 UTC

[trafficserver] branch master updated: slice/HttpHeader fix TSMLoc release call

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

eze 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 6ae6985  slice/HttpHeader fix TSMLoc release call
6ae6985 is described below

commit 6ae6985774628c518e3bd5a2851b5a272703de7c
Author: Brian Olsen <br...@comcast.com>
AuthorDate: Fri Jun 7 12:51:36 2019 +0000

    slice/HttpHeader fix TSMLoc release call
---
 plugins/experimental/slice/HttpHeader.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/experimental/slice/HttpHeader.cc b/plugins/experimental/slice/HttpHeader.cc
index bcf649b..3323705 100644
--- a/plugins/experimental/slice/HttpHeader.cc
+++ b/plugins/experimental/slice/HttpHeader.cc
@@ -78,7 +78,7 @@ HttpHeader::setUrl(TSMBuffer const bufurl, TSMLoc const locurl)
     return false;
   }
 
-  TSMLoc locurlout;
+  TSMLoc locurlout   = nullptr;
   TSReturnCode rcode = TSHttpHdrUrlGet(m_buffer, m_lochdr, &locurlout);
   if (TS_SUCCESS != rcode) {
     return false;
@@ -92,7 +92,7 @@ HttpHeader::setUrl(TSMBuffer const bufurl, TSMLoc const locurl)
     rcode = TSHttpHdrUrlSet(m_buffer, m_lochdr, locurlout);
   }
 
-  TSHandleMLocRelease(m_buffer, TS_NULL_MLOC, locurlout);
+  TSHandleMLocRelease(m_buffer, m_lochdr, locurlout);
 
   return TS_SUCCESS == rcode;
 }