mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 12:49:20 +02:00
* Fixed memory leak caused by FSocket not being freed if error during connect (bug ID 26959)
git-svn-id: trunk@30619 -
This commit is contained in:
parent
f5aeb96c97
commit
f67cbabdc6
@ -456,7 +456,12 @@ begin
|
||||
Aport:=80;
|
||||
G:=GetSocketHandler(UseSSL);
|
||||
FSocket:=TInetSocket.Create(AHost,APort,G);
|
||||
FSocket.Connect;
|
||||
try
|
||||
FSocket.Connect;
|
||||
except
|
||||
FreeAndNil(FSocket);
|
||||
Raise;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TFPCustomHTTPClient.DisconnectFromServer;
|
||||
|
Loading…
Reference in New Issue
Block a user