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

git version control git at videolan.org
Sat Nov 22 19:12:44 CET 2008


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

Fix memleak

Closes #2308
(cherry picked from commit f4407931afb32f6bb93c8217fa806ced3e847aa5)

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

 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 60fe2df..2880986 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -774,6 +774,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