[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. |