[vlc-commits] asf: fix memory leaks
Hannes Domani
git at videolan.org
Fri Feb 26 18:02:05 CET 2016
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Feb 26 17:49:21 2016 +0100| [d84438598dae2eb568908ef9e2d7037230918e88] | committer: Jean-Baptiste Kempf
asf: fix memory leaks
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d84438598dae2eb568908ef9e2d7037230918e88
---
modules/mux/asf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index df21588..f4affbe 100644
--- a/modules/mux/asf.c
+++ b/modules/mux/asf.c
@@ -282,6 +282,7 @@ static void Close( vlc_object_t * p_this )
asf_track_t *track = (asf_track_t *)vlc_array_item_at_index( p_sys->p_tracks, i );
free( track->p_extra );
es_format_Clean( &track->fmt );
+ free( track );
}
vlc_array_clear( p_sys->p_tracks );
@@ -616,6 +617,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
}
default:
msg_Err(p_mux, "unhandled track type" );
+ free( tk );
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list