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

winedbg: Fix a memory leak.

parent da5a398c
......@@ -70,9 +70,9 @@ void source_add_path(const char* path)
size = strlen(path) + 1;
if (search_path)
{
unsigned pos = HeapSize(GetProcessHeap(), 0, search_path);
unsigned pos = strlen(search_path) + 1;
new = HeapReAlloc(GetProcessHeap(), 0, search_path, pos + size);
if (!new || !pos) return;
if (!new) return;
new[pos - 1] = ';';
strcpy(&new[pos], path);
}
......
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