wininet/ftp: Fix potential memory leak.

This commit is contained in:
Paul Vriens 2007-03-21 17:56:09 +01:00 committed by Alexandre Julliard
parent 5f9d7745dc
commit 611acf5201

View File

@ -2825,9 +2825,10 @@ static BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, DW
}
TRACE("Data transfer complete\n");
HeapFree(GetProcessHeap(), 0, lpszBuffer);
recv_end:
HeapFree(GetProcessHeap(), 0, lpszBuffer);
return (nRC != -1);
}