winedump: free bit map before returning (Smatch)

André Hentschel nerv at dawncrow.de
Thu Jan 14 15:53:54 CST 2010


---
 tools/winedump/pe.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c
index 728253e..5ae5f70 100644
--- a/tools/winedump/pe.c
+++ b/tools/winedump/pe.c
@@ -1582,7 +1582,12 @@ static	void	do_grab_sym( void )
 	assert(dll_symbols[j].symbol);
     }
     pFunc = RVA(exportDir->AddressOfFunctions, exportDir->NumberOfFunctions * sizeof(DWORD));
-    if (!pFunc) {printf("Can't grab functions' address table\n"); return;}
+    if (!pFunc)
+    {
+        printf("Can't grab functions' address table\n");
+        free(map);
+        return;
+    }
 
     for (i = 0; i < exportDir->NumberOfFunctions; i++)
     {
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list