Michael Stefaniuc : 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.
Alexandre Julliard
julliard at winehq.org
Fri Sep 21 07:23:03 CDT 2007
Module: wine
Branch: master
Commit: ebd1ba807e8c76b3139901d58d70a2f64d6f5648
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ebd1ba807e8c76b3139901d58d70a2f64d6f5648
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Sep 20 23:49:29 2007 +0200
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 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/resource.c b/dlls/kernel32/resource.c
index d66f4ae..ff2ec95 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;
}
More information about the wine-cvs
mailing list