Commit f9b41a79 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ntdll: Release buffer when it won't be referenced.

parent ba51a6c9
...@@ -662,9 +662,11 @@ static ULONG get_full_path_helper(LPCWSTR name, LPWSTR buffer, ULONG size) ...@@ -662,9 +662,11 @@ static ULONG get_full_path_helper(LPCWSTR name, LPWSTR buffer, ULONG size)
tmp[1] = ':'; tmp[1] = ':';
tmp[2] = '\\'; tmp[2] = '\\';
ins_str = tmp; ins_str = tmp;
RtlFreeHeap(GetProcessHeap(), 0, val.Buffer);
break; break;
default: default:
ERR("Unsupported status code\n"); ERR("Unsupported status code\n");
RtlFreeHeap(GetProcessHeap(), 0, val.Buffer);
break; break;
} }
mark = 3; mark = 3;
......
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