userenv: GetUserProfileDirectoryW: Plug memory leak.

This commit is contained in:
Joris Huizer 2011-03-02 21:28:43 +01:00 committed by Alexandre Julliard
parent 75cc509dae
commit fa7c08820b
1 changed files with 1 additions and 0 deletions

View File

@ -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;