Removes some memory leaks

This commit is contained in:
Felipe Zimmerle
2015-10-30 17:24:39 -03:00
parent 061ba0131a
commit 48704c27a9
8 changed files with 36 additions and 5 deletions

View File

@@ -41,6 +41,12 @@ std::list<transaction::Variable *> *
count++;
}
while (reslIn->empty() == false) {
delete reslIn->front();
reslIn->pop_front();
}
delete reslIn;
std::string res = std::to_string(count);
reslOut->push_back(new transaction::Variable(std::string(var->name),