[vlc-devel] commit: Fix handle leak ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue May 20 18:02:23 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue May 20 18:55:50 2008 +0300| [ce0b5da92eb3d06a34ce32b63421b605c8b19d2e]

Fix handle leak

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

 modules/control/http/util.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/control/http/util.c b/modules/control/http/util.c
index 3ebc889..97767bd 100644
--- a/modules/control/http/util.c
+++ b/modules/control/http/util.c
@@ -139,6 +139,7 @@ int ParseDirectory( intf_thread_t *p_intf, char *psz_root,
     if( i_dirlen + 10 > MAX_DIR_SIZE )
     {
         msg_Warn( p_intf, "skipping too deep directory (%s)", psz_dir );
+        closedir( p_dir );
         return 0;
     }
 




More information about the vlc-devel mailing list