forked from enlightenment/efl
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:
parent
d1ffc7924e
commit
def04c933c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue