e system ddc - handle error case of alloc fail and dont deref null

fix CID 1425220
enlightenment-0.24
Carsten Haitzler 3 years ago
parent 7d5f64430b
commit f1e899fee0
  1. 1
      src/bin/system/e_system_ddc.c

@ -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…
Cancel
Save