forked from enlightenment/efl
ecore-evas-x: Fix resource leak from eina_str_split_full usage
@bugfix: This fixes Coverity CID 1188012 Coverity reported resource leak from eina_str_split_full return which was only being freed if the number was > 0. This is incorrect as eina_str_split_full will still allocate the array and thus it should be freed. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
8e48e864ae
commit
58c5edd9af
|
@ -371,7 +371,7 @@ _ecore_evas_x_aux_hints_supprted_update(Ecore_Evas *ee)
|
||||||
eina_list_append(ee->prop.aux_hint.supported_list, hint);
|
eina_list_append(ee->prop.aux_hint.supported_list, hint);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (num > 0)
|
if ((str) && (str[0]))
|
||||||
{
|
{
|
||||||
free(str[0]);
|
free(str[0]);
|
||||||
free(str);
|
free(str);
|
||||||
|
|
Loading…
Reference in New Issue