Commit a9225779 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Avoid passing a non allocated buffer to HeapFree.

Latest changes to heap management can lead to a crash in this situation. Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com>
parent df65aee9
......@@ -820,7 +820,8 @@ BOOL types_print_type(const struct dbg_type* type, BOOL details, const WCHAR* va
}
if (varname && !printed) dbg_printf(" %ls", varname);
HeapFree(GetProcessHeap(), 0, ptr);
if (name == ptr)
HeapFree(GetProcessHeap(), 0, ptr);
return TRUE;
}
......
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