[vlc-devel] commit: Fix memleak. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Jun 19 11:42:27 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Fri Jun 19 11:28:46 2009 +0200| [614ff902cd2b4f6d38faef9e6b66dd58bf049fb6] | committer: Rémi Duraffort
Fix memleak.
(cherry picked from commit 8c60ce97a210281a7a9701be7d636b9b693a4216)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=614ff902cd2b4f6d38faef9e6b66dd58bf049fb6
---
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 f1530d8..0b62b9d 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