Fix Memory Leak 18/284318/1 tizen_7.0
authorAnjali Nijhara <a.nijhara@samsung.com>
Thu, 20 Oct 2022 05:29:40 +0000 (10:59 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Tue, 15 Nov 2022 12:11:21 +0000 (17:41 +0530)
Change-Id: Icfd245e95466b232dcfc43ac46e19261724c0e91
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
unittest/tct-stc-core.cpp

index d05017e..5cf239f 100755 (executable)
@@ -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", "===========================================");