[vlc-devel] commit: Fix memleak (Christophe Mutricy )

git version control git at videolan.org
Sat Nov 22 18:03:45 CET 2008


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sat Nov 22 16:22:24 2008 +0000| [f4407931afb32f6bb93c8217fa806ced3e847aa5] | committer: Christophe Mutricy 

Fix memleak

Closes #2308

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

 modules/demux/live555.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index fd84502..8e42941 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -783,6 +783,7 @@ static int SessionsSetup( demux_t *p_demux )
             tk->p_buffer    = (uint8_t *)malloc( 65536 );
             if( !tk->p_buffer )
             {
+                free( tk );
                 delete iter;
                 return VLC_ENOMEM;
             }




More information about the vlc-devel mailing list