[vlc-commits] Fix file descriptor leak (cid #1049847)

Rémi Duraffort git at videolan.org
Sun Jul 14 12:04:08 CEST 2013


vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 23:07:09 2013 +0200| [1f95bc6f2d50d11ca66d3c9dadfb779082a331ea] | committer: Jean-Baptiste Kempf

Fix file descriptor leak (cid #1049847)

(cherry picked from commit 7301a70904d6f339e71508b5ca7ef6a9519cc798)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=1f95bc6f2d50d11ca66d3c9dadfb779082a331ea
---

 modules/gui/eject.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/eject.c b/modules/gui/eject.c
index 740a15e..6a74bdb 100644
--- a/modules/gui/eject.c
+++ b/modules/gui/eject.c
@@ -170,6 +170,7 @@ static int intf_Eject( vlc_object_t *p_this, const char *psz_device )
         close( fd );
         return VLC_EGENERIC;
     }
+    close( fd );
     return VLC_SUCCESS;
 
 #else



More information about the vlc-commits mailing list