TLHTTPSocket.FCurrentInput is not destroyed (memleak)
Original Reporter info from Mantis: ZLedas @zledas
-
Reporter name: Žilvinas Ledas
Original Reporter info from Mantis: ZLedas @zledas
- Reporter name: Žilvinas Ledas
Description:
memleak is producet, when in TLHTTPSocket.Disconnect line FreeAndNil(FCurrentInput); is executed.
FCurrentInput by default is created with FPersistent := true; and as a result FreeAndNil(FCurrentInput); will exit in
---
destructor TClientOutput.Destroy;
begin
if FPersistent then exit;
inherited;
end;
---
and pointer to not destroyed FCurrentInput will be lost (because of FreeAndNil(FCurrentInput));
Mantis conversion info:
- Mantis ID: 16741