userenv: GetUserProfileDirectoryW: Plug memory leak.
This commit is contained in:
parent
75cc509dae
commit
fa7c08820b
|
@ -187,6 +187,7 @@ BOOL WINAPI GetUserProfileDirectoryW( HANDLE hToken, LPWSTR lpProfileDir,
|
|||
ret = TRUE;
|
||||
|
||||
done:
|
||||
HeapFree( GetProcessHeap(), 0, t );
|
||||
HeapFree( GetProcessHeap(), 0, userW );
|
||||
HeapFree( GetProcessHeap(), 0, dirW );
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue