[vlc-devel] commit: Fix potential memleak (CID 270 and 271) ( Rémi Duraffort )

git version control git at videolan.org
Thu Oct 30 21:21:20 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Oct 30 21:18:45 2008 +0100| [aab2abb054990b7cf94f7ef2bd285049d23cb83c] | committer: Rémi Duraffort 

Fix potential memleak (CID 270 and 271)

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

 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 8c8a022..122400f 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -369,6 +369,7 @@ static int Open( vlc_object_t * p_this )
         if( p_strl == NULL || p_strh == NULL || p_auds == NULL || p_vids == NULL )
         {
             msg_Warn( p_demux, "stream[%d] incomplete", i );
+            free( tk );
             continue;
         }
 




More information about the vlc-devel mailing list