From 5499521eeda7f7a4f94c93470f0001609ab4bd4f Mon Sep 17 00:00:00 2001 From: Mike Schore Date: Fri, 18 Sep 2020 15:50:40 -0700 Subject: [PATCH] add missing release calls Signed-off-by: Mike Schore --- .../filters/http/platform_bridge/platform_bridge_filter_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common/extensions/filters/http/platform_bridge/platform_bridge_filter_test.cc b/test/common/extensions/filters/http/platform_bridge/platform_bridge_filter_test.cc index 962beba386..be5286a387 100644 --- a/test/common/extensions/filters/http/platform_bridge/platform_bridge_filter_test.cc +++ b/test/common/extensions/filters/http/platform_bridge/platform_bridge_filter_test.cc @@ -374,6 +374,7 @@ TEST_F(PlatformBridgeFilterTest, StopAndBufferOnResponseData) { std::string expected_data[3] = {"A", "AB", "ABC"}; EXPECT_EQ(to_string(c_data), expected_data[invocations->on_response_data_calls++]); EXPECT_FALSE(end_stream); + c_data.release(c_data.context); return {kEnvoyFilterDataStatusStopIterationAndBuffer, envoy_nodata}; }; @@ -427,6 +428,7 @@ TEST_F(PlatformBridgeFilterTest, StopNoBufferOnResponseData) { std::string expected_data[3] = {"A", "B", "C"}; EXPECT_EQ(to_string(c_data), expected_data[invocations->on_response_data_calls++]); EXPECT_FALSE(end_stream); + c_data.release(c_data.context); return {kEnvoyFilterDataStatusStopIterationNoBuffer, envoy_nodata}; };