wininet/ftp: Fix potential memory leak.
This commit is contained in:
parent
5f9d7745dc
commit
611acf5201
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue