Commit 8d1aecb3 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential memleak (cid #1047282)

parent 9f895cda
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment