[vlc-devel] [PATCH] packetizer:copy: fix a leak on error

Steve Lhomme robux4 at videolabs.io
Wed Jul 19 15:29:58 CEST 2017


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



More information about the vlc-devel mailing list