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

Rémi Duraffort git at videolan.org
Sat Jul 13 23:37:34 CEST 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 23:07:09 2013 +0200| [7301a70904d6f339e71508b5ca7ef6a9519cc798] | committer: Rémi Duraffort

Fix file descriptor leak (cid #1049847)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7301a70904d6f339e71508b5ca7ef6a9519cc798
---

 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