Skip to content

Commit

Permalink
Merge pull request #4504 from sysown/v2.x-4491
Browse files Browse the repository at this point in the history
Fix two memory leaks on SQLite3 prepared statements - Closes #4491
  • Loading branch information
renecannao authored Apr 21, 2024
2 parents fc065c1 + ecff8d0 commit dd13f0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/MySQL_HostGroups_Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7663,6 +7663,7 @@ void MySQL_HostGroups_Manager::generate_mysql_hostgroup_attributes_table() {
}
}

(*proxy_sqlite3_finalize)(statement);
delete incoming_hostgroup_attributes;
incoming_hostgroup_attributes=NULL;
}
Expand Down Expand Up @@ -7717,6 +7718,7 @@ void MySQL_HostGroups_Manager::generate_mysql_servers_ssl_params_table() {
string MapKey = MSSP.getMapKey(rand_del);
Servers_SSL_Params_map.emplace(MapKey, MSSP);
}
(*proxy_sqlite3_finalize)(statement);
delete incoming_mysql_servers_ssl_params;
incoming_mysql_servers_ssl_params=NULL;
}
Expand Down

0 comments on commit dd13f0f

Please sign in to comment.