test_helper: Fix double free 01/324201/2
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 14 May 2025 02:26:50 +0000 (11:26 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 14 May 2025 04:32:55 +0000 (04:32 +0000)
The current_test.name has to be set to null to prevent double free.

Change-Id: I55580d2967c47e45ee279c2a09d141c0c1bf5239

src/bin/debug/e_test_helper.c

index 51786fda92f911dd31deff64c06953c3a4203407..dfd0ba85186f8c198efced38f88c48c298f65a0d 100644 (file)
@@ -539,6 +539,7 @@ _e_test_helper_cb_tc_timeout(void *data)
      {
         ELOGF("E_TEST_HELPER", "Testcase timeout: %s", NULL, th_data->current_test.name);
         eina_stringshare_del(th_data->current_test.name);
+        th_data->current_test.name = NULL;
      }
 
    th_data->current_test.is_running = EINA_FALSE;