diff --git a/src/utils/system.cc b/src/utils/system.cc index 466fcb38fe..d832640edd 100644 --- a/src/utils/system.cc +++ b/src/utils/system.cc @@ -126,9 +126,9 @@ std::list expandEnv(const std::string& var, int flags) { std::ifstream *iss = new std::ifstream(exp[0], std::ios::in); if (iss->is_open()) { iss->close(); - delete iss; vars.push_back(exp[0]); } + delete iss; } } wordfree(&p);