Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two memory leaks on SQLite3 prepared statements - Closes #4491 #4504

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

JavierJF
Copy link
Collaborator

@JavierJF JavierJF commented Apr 12, 2024

Fixes two memory leaks that are exercised during tables regeneration due to servers reconfiguration.

Details

Leaks are reflected in the amount of memory used by SQLite3. Leaks are small and will only affect environments with high frequency servers reconfiguration, the number of servers isn't relevant.

This PR also motivated PR #4506, which enables accumulative profile dumps for jemalloc.

Affected versions

  • mysql_hostgroup_attributes: Since 2.5.0.
  • mysql_servers_ssl_params: Since 2.6.0.

The leaks are exercised during table regeneration at
'MySQL_HostGroups_Manager::commit'.
@JavierJF JavierJF changed the title Fix two memory leaks on SQLite3 prepared statements Fix two memory leaks on SQLite3 prepared statements - Closes #4491 Apr 12, 2024
@JavierJF JavierJF mentioned this pull request Apr 12, 2024
@renecannao renecannao merged commit dd13f0f into v2.x Apr 21, 2024
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants