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
1 changed files with 2 additions and 1 deletions

View File

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