potential memory fix

This commit is contained in:
john30
2017-04-22 11:32:27 +02:00
parent 517ef39693
commit de456b3774
+2 -1
View File
@@ -85,8 +85,9 @@ const string AttributedItem::pluck(map<string, string>& row, string key) {
if (it == row.end()) {
return "";
}
const string ret = it->second;
row.erase(it);
return it->second;
return ret;
}
void AttributedItem::dumpString(ostream& output, const string str, const bool prependFieldSeparator) {