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
This commit is contained in:
Chris Michael 2019-12-18 10:28:06 -05:00
parent d1ffc7924e
commit def04c933c
1 changed files with 2 additions and 0 deletions

View File

@ -430,6 +430,8 @@ EFL_START_TEST(wl2_window_available_rotation)
fail_if(ret_rots[0] != 90);
fail_if(ret_rots[1] != 180);
fail_if(ret_count != 2);
free(ret_rots);
}
EFL_END_TEST