vlc | branch: master | Hannes Domani <[email protected]> | Fri Feb 26 17:49:21 
2016 +0100| [d84438598dae2eb568908ef9e2d7037230918e88] | committer: 
Jean-Baptiste Kempf

asf: fix memory leaks

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> 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;
     }
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to