From adf4866d06ef208823f596d427c6afd8081075ca Mon Sep 17 00:00:00 2001 From: Anjali Nijhara Date: Thu, 20 Oct 2022 10:59:40 +0530 Subject: [PATCH] Fix Memory Leak Change-Id: Icfd245e95466b232dcfc43ac46e19261724c0e91 Signed-off-by: Niraj Kumar Goit --- unittest/tct-stc-core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unittest/tct-stc-core.cpp b/unittest/tct-stc-core.cpp index d05017e..5cf239f 100755 --- a/unittest/tct-stc-core.cpp +++ b/unittest/tct-stc-core.cpp @@ -79,7 +79,8 @@ TEST(stc, stc){ } else { PRINT_LOG(DLOG_INFO, "NativeTCT", "Name check error! [%s][%s]", pszGetTCName, tc_array[i].name); - ASSERT_EQ(0, 1); + FREE_MEMORY_TC(pszGetTCName); + ASSERT_EQ(0, 1); } if (COMMON_DEBUG) PRINT_LOG(DLOG_INFO, "NativeTCT", "==========================================="); -- 2.7.4