From: Anjali Nijhara Date: Thu, 20 Oct 2022 05:29:40 +0000 (+0530) Subject: Fix Memory Leak X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adf4866d06ef208823f596d427c6afd8081075ca;p=platform%2Fcore%2Fapi%2Fsmart-traffic-control.git Fix Memory Leak Change-Id: Icfd245e95466b232dcfc43ac46e19261724c0e91 Signed-off-by: Niraj Kumar Goit --- 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", "===========================================");