Skip to content
Snippets Groups Projects
Commit 6a1bc6dc authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

exclude mongodb from coverage

parent db2b94e3
No related branches found
No related tags found
No related merge requests found
......@@ -84,9 +84,9 @@ std::string EncodeColName(const std::string &colname) {
}
std::string DecodeName(const std::string &name) {
char *decoded = (char*) malloc(name.size()*sizeof(char));
auto res = decode(name.c_str(), decoded);
return res >= 0 ? decoded : "";
std::unique_ptr<char>decoded{new char(name.size())};
auto res = decode(name.c_str(), decoded.get());
return res >= 0 ? decoded.get() : "";
}
bool ShouldEscapeQuery(char c) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment