[vlc-devel] commit: Fix memleak. ( Rémi Duraffort )

git version control git at videolan.org
Fri Jun 19 11:31:57 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jun 19 11:28:46 2009 +0200| [8c60ce97a210281a7a9701be7d636b9b693a4216] | committer: Rémi Duraffort 

Fix memleak.

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

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

diff --git a/modules/control/http/util.c b/modules/control/http/util.c
index 04a7ef6..497d501 100644
--- a/modules/control/http/util.c
+++ b/modules/control/http/util.c
@@ -179,6 +179,8 @@ int ParseDirectory( intf_thread_t *p_intf, char *psz_root,
         struct stat st;
         if( stat( dir, &st ) == 0 )
         {
+            free( user );
+            free( password );
             closedir( p_dir );
             return VLC_EGENERIC;
         }




More information about the vlc-devel mailing list