Skip to content

Commit

Permalink
Fix mem leak in stats_mysql_free_connections #2362
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Nov 4, 2019
1 parent 9502c2e commit c51e283
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ProxySQL_Admin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6512,6 +6512,8 @@ void ProxySQL_Admin::stats___mysql_free_connections() {
row_idx++;
}
statsdb->execute("COMMIT");
sqlite3_finalize(statement1);
sqlite3_finalize(statement32);
delete resultset;
}

Expand Down

0 comments on commit c51e283

Please sign in to comment.