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

This commit is contained in:
Nikolay Sivov 2010-01-08 18:07:12 +03:00 committed by Alexandre Julliard
parent ba51a6c9bc
commit f9b41a7983
1 changed files with 2 additions and 0 deletions

View File

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