[MXS-4913] Memory leak when closing SSL connection Created: 2024-01-02  Updated: 2024-01-03  Resolved: 2024-01-03

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 2.5.29, 6.4.13
Fix Version/s: 2.5.30, 6.4.14

Type: Bug Priority: Major
Reporter: Esa Korhonen Assignee: Esa Korhonen
Resolution: Fixed Votes: 0
Labels: None


 Description   

The function int DCB::read_SSL(GWBUF** head) can return an error (-1) even if data was added to head. Callers ignore the data if detecting the error, leaking the GWBUF . This mainly happens when closing an SSL connection.

Fix this by freeing the data in DCB::read.


Generated at Thu Feb 08 04:32:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.