[vlc-devel] commit: Fix potential object leak. ( Rémi Duraffort )

git version control git at videolan.org
Sat Oct 10 12:01:15 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Oct 10 12:01:31 2009 +0200| [6feec1a07bf66869c14ad27d86d73ae36ea8a2d7] | committer: Rémi Duraffort 

Fix potential object leak.

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

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

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 028f45b..4353912 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -408,6 +408,7 @@ static int Open( vlc_object_t * p_this )
                     {
                         free( psz_ref );
                         free( psz_path );
+                        vlc_object_release( p_input) ;
                         return VLC_ENOMEM;
                     }
 




More information about the vlc-devel mailing list