[vlc-commits] demux: nuv: fix leaks on failed Open

Francois Cartegnie git at videolan.org
Thu Dec 31 00:00:11 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 30 23:48:16 2015 +0100| [13dd520ce3a916e27875cc2908ed5cfec4354ab5] | committer: Francois Cartegnie

demux: nuv: fix leaks on failed Open

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

 modules/demux/nuv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/nuv.c b/modules/demux/nuv.c
index 3fe9e72..1e0bd69 100644
--- a/modules/demux/nuv.c
+++ b/modules/demux/nuv.c
@@ -336,8 +336,8 @@ static int Open( vlc_object_t * p_this )
 
 error:
     msg_Warn( p_demux, "cannot load Nuv file" );
+    Close( p_this );
     p_demux->p_sys = NULL;
-    free( p_sys );
     return VLC_EGENERIC;
 }
 



More information about the vlc-commits mailing list