summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2019-12-18 10:28:06 -0500
committerChris Michael <cp.michael@samsung.com>2019-12-18 10:28:06 -0500
commitdef04c933cb6887714cff6936f280abaafa72188 (patch)
tree6b80ae17e9663a0913fc6cd5e4be7a930a9a7190
parentd1ffc7924e4d05ada26af3c98234a8b19634efc1 (diff)
tests/ecore_wl2: Fix memory leak
Coverity reports that we leak 'ret_rots' here because ecore_wl2_window_available_rotations_get allocates space for the return, so we should free this here. Fixes CID1408025
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_window.c b/src/tests/ecore_wl2/ecore_wl2_test_window.c
index c392475d24..bb329195ef 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -430,6 +430,8 @@ EFL_START_TEST(wl2_window_available_rotation)
430 fail_if(ret_rots[0] != 90); 430 fail_if(ret_rots[0] != 90);
431 fail_if(ret_rots[1] != 180); 431 fail_if(ret_rots[1] != 180);
432 fail_if(ret_count != 2); 432 fail_if(ret_count != 2);
433
434 free(ret_rots);
433} 435}
434EFL_END_TEST 436EFL_END_TEST
435 437