[vlc-commits] Fix potential memleak (cid #1047282)

Rémi Duraffort git at videolan.org
Sat Jul 13 15:31:25 CEST 2013


vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 08:33:57 2013 +0200| [f1ef36761de80a4048db1f8f5336c9af62880a66] | committer: Jean-Baptiste Kempf

Fix potential memleak (cid #1047282)

(cherry picked from commit 8d1aecb3b30782e8cd85e1585374fa0618b09f95)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 lib/media.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/media.c b/lib/media.c
index 2db45a3..fb3a637 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -766,6 +766,7 @@ libvlc_media_tracks_get( libvlc_media_t *p_md, libvlc_media_track_t *** pp_es )
         {
             libvlc_media_tracks_release( *pp_es, i_es );
             *pp_es = NULL;
+            free( p_mes );
             return 0;
         }
         (*pp_es)[i] = p_mes;



More information about the vlc-commits mailing list