Skip to content

Commit

Permalink
Fixed memory leaks in ProxySQL HTTP Server
Browse files Browse the repository at this point in the history
  • Loading branch information
rahim-kanji committed Feb 16, 2024
1 parent 3f7a90c commit 4c1974c
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 118 deletions.
6 changes: 3 additions & 3 deletions include/ProxySQL_HTTP_Server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class ProxySQL_HTTP_Server {
time_t cur_time;
pthread_mutex_t check_version_mutex;
time_t last_check_version;
std::string * generate_header(char *);
std::string * generate_canvas(char *);
std::string * generate_chart(char *chart_name, char *ts, int nsets, char **dname, char **llabel, char **values);
std::string generate_header(char *);
std::string generate_canvas(char *);
std::string generate_chart(char *chart_name, char *ts, int nsets, char **dname, char **llabel, char **values);
char *extract_values(SQLite3_result *result, int idx, bool relative, double mult=1);
char *extract_ts(SQLite3_result *result, bool relative);
public:
Expand Down
Loading

0 comments on commit 4c1974c

Please sign in to comment.