[vlc-devel] commit: avi: Don't leak in error code path. (Pierre d'Herbemont )

git version control git at videolan.org
Thu Dec 10 02:04:40 CET 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Dec 10 02:03:33 2009 +0100| [fa2358f9260a17555d08a65f2b5ee069f7b934b7] | committer: Pierre d'Herbemont 

avi: Don't leak in error code path.

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

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

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 9e530fc..36c99eb 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -280,6 +280,7 @@ static int Open( vlc_object_t * p_this )
     if( AVI_ChunkReadRoot( p_demux->s, &p_sys->ck_root ) )
     {
         msg_Err( p_demux, "avi module discarded (invalid file)" );
+        free(p_sys);
         return VLC_EGENERIC;
     }
 




More information about the vlc-devel mailing list