Fix potential memleak (cid #1047282)
authorRémi Duraffort <ivoire@videolan.org>
Sat, 13 Jul 2013 06:33:57 +0000 (08:33 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 13 Jul 2013 06:33:57 +0000 (08:33 +0200)
lib/media.c

index 2db45a3..fb3a637 100644 (file)
@@ -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;