[vlc-devel] [PATCH 13/18] demux:ts_sl: fix potential leak
Steve Lhomme
robux4 at videolabs.io
Mon Jul 17 16:33:19 CEST 2017
If es_format_IsSimilar() is true we have an initialized es_format_t with extra
data that is never cleaned.
---
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 );
}
}
--
2.12.1
More information about the vlc-devel
mailing list