summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-20 00:06:30 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-20 00:20:42 +0100
commit52b02055f45ccb32b55b39bb5b518403c55c86b6 (patch)
tree17514a085bbded7a6f45f7306d3041c7b7395f4e /src/lib
parentca4b9393644f142cbe26cab6734f81f6d891b535 (diff)
ecore - efl thread - dont close invalid < 0 fd's
fix CID 1396951
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore/efl_thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore/efl_thread.c b/src/lib/ecore/efl_thread.c
index ab6fdab7a1..9fc6b8d882 100644
--- a/src/lib/ecore/efl_thread.c
+++ b/src/lib/ecore/efl_thread.c
@@ -826,8 +826,8 @@ _efl_thread_efl_task_run(Eo *obj, Efl_Thread_Data *pd)
826 close(pd->fd.out); 826 close(pd->fd.out);
827 close(pd->ctrl.in); 827 close(pd->ctrl.in);
828 close(pd->ctrl.out); 828 close(pd->ctrl.out);
829 close(thdat->fd.in); 829 if (thdat->fd.in >= 0) close(thdat->fd.in);
830 close(thdat->fd.out); 830 if (thdat->fd.out >= 0) close(thdat->fd.out);
831 close(thdat->ctrl.in); 831 close(thdat->ctrl.in);
832 close(thdat->ctrl.out); 832 close(thdat->ctrl.out);
833 free(thdat); 833 free(thdat);