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

fix CID 1425220
This commit is contained in:
Carsten Haitzler 2020-04-19 00:48:07 +01:00
parent 7d5f64430b
commit f1e899fee0
1 changed files with 1 additions and 0 deletions

View File

@ -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++)
{