[vlc-devel] [PATCH 5/6] dxa9: fix hd3d_dll leaking

Steve Lhomme robux4 at videolabs.io
Wed Jun 14 15:48:50 CEST 2017


CID #1444701
---
 modules/video_chroma/dxa9.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/video_chroma/dxa9.c b/modules/video_chroma/dxa9.c
index 26dd5d6f92..611ef9b296 100644
--- a/modules/video_chroma/dxa9.c
+++ b/modules/video_chroma/dxa9.c
@@ -319,8 +319,10 @@ static int OpenConverter( vlc_object_t *obj )
     }
 
     filter_sys_t *p_sys = calloc(1, sizeof(filter_sys_t));
-    if (!p_sys)
-         return VLC_ENOMEM;
+    if (!p_sys) {
+         err = VLC_ENOMEM;
+         goto done;
+    }
     CopyInitCache(&p_sys->cache, p_filter->fmt_in.video.i_width );
     p_filter->p_sys = p_sys;
     err = VLC_SUCCESS;
-- 
2.12.1



More information about the vlc-devel mailing list