forked from enlightenment/efl
fix fd leak in emotion webcam where fd of value 0 never closed
fixes CID 1039175
This commit is contained in:
parent
c6119802d1
commit
5d6e30fae0
|
@ -143,7 +143,7 @@ _emotion_check_device(Emotion_Webcam *ew)
|
|||
eina_stringshare_del(ew->name);
|
||||
free(ew);
|
||||
#ifdef HAVE_V4L2
|
||||
if (fd > 0) close(fd);
|
||||
if (fd >= 0) close(fd);
|
||||
#endif
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue