Skip to content

Commit

Permalink
Merge pull request #2364 from sysown/v2.0.9-memleaks
Browse files Browse the repository at this point in the history
V2.0.9 memleaks
  • Loading branch information
renecannao authored Nov 7, 2019
2 parents db864bd + d52a771 commit a37dc36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/MySQL_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ bool MySQL_Session::handler_SetAutocommit(PtrSize_t *pkt) {
autocommit=true;
client_myds->myconn->set_autocommit(autocommit);
autocommit_on_hostgroup=FindOneActiveTransaction();
free(_new_pkt.ptr);
return false;
} else {
// as there is no active transaction, we do no need to forward it
Expand Down
1 change: 1 addition & 0 deletions lib/set_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ std::map<std::string,std::vector<string>> SetParser::parse1() {
std::transform(key.begin(), key.end(), key.begin(), ::tolower);
result[key] = op;
}
delete opt2;
return result;
}

Expand Down

0 comments on commit a37dc36

Please sign in to comment.