[MXS-1740] Hintfilter leaks memory Created: 2018-03-26 Updated: 2019-07-01 Resolved: 2018-06-01 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | hintfilter |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.8 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Esa Korhonen | Assignee: | Niclas Antti |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | MXS-SPRINT-56, MXS-SPRINT-57, MXS-SPRINT-58, MXS-SPRINT-59 |
| Description |
|
The HintFilter routeQuery-function does not check if the buffer already has a hint attached, and will overwrite existing hints, even with 0. Thus, the existing hint is never freed. Other hint-generating/attaching code should also be checked. |