shell32: Fix a memory leak in Stream_WriteLocationInfo.
This commit is contained in:
parent
1a67b1f53e
commit
8e51ab35be
|
@ -977,6 +977,7 @@ static HRESULT Stream_WriteLocationInfo( IStream* stm, LPCWSTR path,
|
|||
LOCATION_INFO *loc;
|
||||
LPSTR szLabel, szPath, szFinalPath;
|
||||
ULONG count = 0;
|
||||
HRESULT hr;
|
||||
|
||||
TRACE("%p %s %p\n", stm, debugstr_w(path), volume);
|
||||
|
||||
|
@ -1018,7 +1019,10 @@ static HRESULT Stream_WriteLocationInfo( IStream* stm, LPCWSTR path,
|
|||
szPath, path_size, NULL, NULL );
|
||||
szFinalPath[0] = 0;
|
||||
|
||||
return IStream_Write( stm, loc, total_size, &count );
|
||||
hr = IStream_Write( stm, loc, total_size, &count );
|
||||
HeapFree(GetProcessHeap(), 0, loc);
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
static EXP_DARWIN_LINK* shelllink_build_darwinid( LPCWSTR string, DWORD magic )
|
||||
|
|
Loading…
Reference in New Issue