forked from enlightenment/enlightenment
e system ddc - handle error case of alloc fail and dont deref null
fix CID 1425220
This commit is contained in:
parent
7d5f64430b
commit
f1e899fee0
|
@ -252,6 +252,7 @@ _ddc_probe(void)
|
|||
ddc_func.ddca_free_display_info_list(ddc_dlist);
|
||||
ddc_dlist = NULL;
|
||||
free(ddc_dh);
|
||||
goto err;
|
||||
}
|
||||
for (i = 0; i < ddc_dlist->ct; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue