[vlc-commits] i420_10_p010: Fix leak
Hugo Beauzée-Luyssen
git at videolan.org
Mon Aug 21 16:25:27 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Aug 21 14:54:17 2017 +0200| [5332f51ee284d185bc0ad33577d2e8ad9e48ae17] | committer: Hugo Beauzée-Luyssen
i420_10_p010: Fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5332f51ee284d185bc0ad33577d2e8ad9e48ae17
---
modules/video_chroma/i420_10_p010.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_chroma/i420_10_p010.c b/modules/video_chroma/i420_10_p010.c
index 33768bc470..a7bb6df75f 100644
--- a/modules/video_chroma/i420_10_p010.c
+++ b/modules/video_chroma/i420_10_p010.c
@@ -75,7 +75,8 @@ static int Create( vlc_object_t *p_this )
if ( p_filter->fmt_in.video.i_chroma != VLC_CODEC_I420_10L)
return -1;
- filter_sys_t *p_sys = calloc(1, sizeof(filter_sys_t));
+ filter_sys_t *p_sys = vlc_malloc( VLC_OBJECT( p_filter ),
+ sizeof(filter_sys_t) );
if (!p_sys)
return VLC_ENOMEM;
More information about the vlc-commits
mailing list