Commit 611acf52 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

wininet/ftp: Fix potential memory leak.

parent 5f9d7745
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment