From 3b6684d9db2d61f40ac19aeb43884e71e6291544 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Fri, 4 Sep 2015 09:39:08 +0000 Subject: [PATCH] [WIN32SS] fix memory leak in error case CID 716637 svn path=/trunk/; revision=68987 --- reactos/win32ss/gdi/ntgdi/polyfill.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/win32ss/gdi/ntgdi/polyfill.c b/reactos/win32ss/gdi/ntgdi/polyfill.c index 0b6290c8acd..e47b0499d2a 100644 --- a/reactos/win32ss/gdi/ntgdi/polyfill.c +++ b/reactos/win32ss/gdi/ntgdi/polyfill.c @@ -616,7 +616,10 @@ IntFillPolygon( //DEBUG_PRINT_ACTIVE_EDGELIST(ActiveHead); if (!ActiveHead) + { + POLYGONFILL_DestroyEdgeList(list); return FALSE; + } pLeft = ActiveHead; pRight = pLeft->pNext;