From 3cc7aae8eec96839ed40f66f535bb2988a2eb275 Mon Sep 17 00:00:00 2001 From: Ashitha Santhosh Date: Thu, 26 Mar 2020 10:56:20 -0700 Subject: [PATCH] Fixed memory leak. --- test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc b/test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc index 7a866816c6e..8f38640ef67 100644 --- a/test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc +++ b/test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc @@ -297,6 +297,7 @@ static void on_client_next_success_cb(tsi_result status, void* user_data, tsi_zero_copy_grpc_protector_max_frame_size(zero_copy_protector, &actual_max_frame_size); GPR_ASSERT(actual_max_frame_size == kMaxFrameSize); + tsi_zero_copy_grpc_protector_destroy(zero_copy_protector); /* Validate peer identity. */ tsi_peer peer; GPR_ASSERT(tsi_handshaker_result_extract_peer(result, &peer) == TSI_OK); @@ -370,6 +371,7 @@ static void on_server_next_success_cb(tsi_result status, void* user_data, tsi_zero_copy_grpc_protector_max_frame_size(zero_copy_protector, &actual_max_frame_size); GPR_ASSERT(actual_max_frame_size == kMinFrameSize); + tsi_zero_copy_grpc_protector_destroy(zero_copy_protector); /* Validate peer identity. */ tsi_peer peer; GPR_ASSERT(tsi_handshaker_result_extract_peer(result, &peer) == TSI_OK);