ecore - efl thread - dont close invalid < 0 fd's

fix CID 1396951
This commit is contained in:
Carsten Haitzler 2020-09-20 00:06:30 +01:00
parent ca4b939364
commit 52b02055f4
1 changed files with 2 additions and 2 deletions

View File

@ -826,8 +826,8 @@ _efl_thread_efl_task_run(Eo *obj, Efl_Thread_Data *pd)
close(pd->fd.out);
close(pd->ctrl.in);
close(pd->ctrl.out);
close(thdat->fd.in);
close(thdat->fd.out);
if (thdat->fd.in >= 0) close(thdat->fd.in);
if (thdat->fd.out >= 0) close(thdat->fd.out);
close(thdat->ctrl.in);
close(thdat->ctrl.out);
free(thdat);