Commit d39e1c36 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

winedump: Fix memory leak.

parent e39a3be8
...@@ -532,7 +532,12 @@ static void dump_dir_exported_functions(void) ...@@ -532,7 +532,12 @@ static void dump_dir_exported_functions(void)
printf("\n"); printf("\n");
} }
pFunc = RVA(exportDir->AddressOfFunctions, exportDir->NumberOfFunctions * sizeof(DWORD)); 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++) for (i = 0; i < exportDir->NumberOfFunctions; i++)
{ {
if (pFunc[i] && !(map[i / 32] & (1 << (i % 32)))) if (pFunc[i] && !(map[i / 32] & (1 << (i % 32))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment