[vlc-commits] demux:ts_sl: fix potential leak
Steve Lhomme
git at videolan.org
Fri Jul 21 13:25:53 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Jul 17 09:56:39 2017 +0200| [fe133f4d11e9bed165b18e8e86fe245e77ff69a8] | committer: Jean-Baptiste Kempf
demux:ts_sl: fix potential leak
If es_format_IsSimilar() is true we have an initialized es_format_t with extra
data that is never cleaned.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe133f4d11e9bed165b18e8e86fe245e77ff69a8
---
modules/demux/mpeg/ts_sl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/mpeg/ts_sl.c b/modules/demux/mpeg/ts_sl.c
index 03369be178..986db8b78e 100644
--- a/modules/demux/mpeg/ts_sl.c
+++ b/modules/demux/mpeg/ts_sl.c
@@ -181,6 +181,8 @@ void SLPackets_Section_Handler( demux_t *p_demux,
p_es->id = es_out_Add( p_demux->out, &p_es->fmt );
b_changed = true;
}
+ else
+ es_format_Clean( &fmt );
}
}
More information about the vlc-commits
mailing list