summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_webcam.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-13 21:15:01 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-13 21:26:05 +0900
commit5d6e30fae04a5d2aca3daf8eab5fe0d60b870330 (patch)
tree6b529a19625969c66d78183ed2c030a3f6e80665 /src/lib/emotion/emotion_webcam.c
parentc6119802d13af20ad5fdc85e35b0eacf1d87c82e (diff)
fix fd leak in emotion webcam where fd of value 0 never closed
fixes CID 1039175
Diffstat (limited to '')
-rw-r--r--src/lib/emotion/emotion_webcam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/emotion/emotion_webcam.c b/src/lib/emotion/emotion_webcam.c
index 9a673d9174..04756cbeda 100644
--- a/src/lib/emotion/emotion_webcam.c
+++ b/src/lib/emotion/emotion_webcam.c
@@ -143,7 +143,7 @@ _emotion_check_device(Emotion_Webcam *ew)
143 eina_stringshare_del(ew->name); 143 eina_stringshare_del(ew->name);
144 free(ew); 144 free(ew);
145#ifdef HAVE_V4L2 145#ifdef HAVE_V4L2
146 if (fd > 0) close(fd); 146 if (fd >= 0) close(fd);
147#endif 147#endif
148 return EINA_FALSE; 148 return EINA_FALSE;
149} 149}