[vlc-devel] [PATCH] decoder: fix leak on error
Steve Lhomme
robux4 at videolabs.io
Tue Jul 18 10:20:19 CEST 2017
---
src/input/decoder.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 502301de35..4663145332 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1796,6 +1796,7 @@ static decoder_t * CreateDecoder( vlc_object_t *p_parent,
break;
default:
msg_Err( p_dec, "unknown ES format" );
+ free( p_owner );
UnloadDecoder( p_dec );
return p_dec;
}
--
2.12.1
More information about the vlc-devel
mailing list