[PATCH] gdi32: Fix a typo in failure path (Coverity).

Nikolay Sivov nsivov at codeweavers.com
Wed Sep 15 07:16:26 CDT 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/gdi32/dc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index f7b56b06f6f..2fa792372d7 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -125,7 +125,7 @@ DC *alloc_dc_ptr( DWORD magic )
     if (!(dc = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dc) ))) return NULL;
     if (!(dc->attr = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dc->attr))))
     {
-        HeapFree( GetProcessHeap(), 0, dc->attr );
+        HeapFree( GetProcessHeap(), 0, dc );
         return NULL;
     }
 
-- 
2.33.0




More information about the wine-devel mailing list