From ebd1ba807e8c76b3139901d58d70a2f64d6f5648 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 20 Sep 2007 23:49:29 +0200 Subject: [PATCH] kernel32: Fix a memory leak. Found by cross referencing Andrew Talbot's list of potential memory leaks with Smatch's view of the same problem. --- dlls/kernel32/resource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/kernel32/resource.c b/dlls/kernel32/resource.c index d66f4aef0c4..ff2ec956b9d 100644 --- a/dlls/kernel32/resource.c +++ b/dlls/kernel32/resource.c @@ -1150,6 +1150,7 @@ static struct mapping_info *create_mapping( LPCWSTR name, BOOL rw ) } unmap_file_from_memory( mi ); + HeapFree( GetProcessHeap(), 0, mi ); return NULL; }