[vlc-commits] packetizer:copy: fix a leak on error
Steve Lhomme
git at videolan.org
Fri Jul 21 13:26:05 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jul 19 13:03:30 2017 +0200| [78e426dab49cb06871a023fb482a2ff85f3b051d] | committer: Jean-Baptiste Kempf
packetizer:copy: fix a leak on error
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=78e426dab49cb06871a023fb482a2ff85f3b051d
---
modules/packetizer/copy.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/packetizer/copy.c b/modules/packetizer/copy.c
index 5f74a426ce..b3aeb8cbcb 100644
--- a/modules/packetizer/copy.c
+++ b/modules/packetizer/copy.c
@@ -116,6 +116,7 @@ static int Open( vlc_object_t *p_this )
if( !fcc )
{
msg_Err( p_dec, "unknown raw audio sample size" );
+ free( p_sys );
return VLC_EGENERIC;
}
p_dec->fmt_out.i_codec = fcc;
More information about the vlc-commits
mailing list