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

@@ -42,6 +42,7 @@ bool PmFromFile::init(const std::string &config, const char **error) {
if (((std::ifstream *)iss)->is_open() == false) {
*error = std::string("Failed to open file: " + param).c_str();
delete iss;
return false;
}
}
@@ -52,6 +53,7 @@ bool PmFromFile::init(const std::string &config, const char **error) {
acmp_prepare(m_p);
delete iss;
return true;
}