[vlc-commits] direct3d9: Fix potential leak

Hugo Beauzée-Luyssen git at videolan.org
Tue Feb 14 15:38:00 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Feb 14 15:05:59 2017 +0100| [bdb0adf378234d36c8bf2ba9d40f26f80d4e7875] | committer: Jean-Baptiste Kempf

direct3d9: Fix potential leak

CID #1402721

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bdb0adf378234d36c8bf2ba9d40f26f80d4e7875
---

 modules/video_output/win32/direct3d9.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index c0379dc..f190e65 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -363,6 +363,7 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned count)
                                                           NULL);
         if (FAILED(hr)) {
            msg_Err(vd, "Failed to allocate surface %d (hr=0x%0lx)", picture_count, hr);
+           free(picsys);
            goto error;
         }
 



More information about the vlc-commits mailing list