Skip to content
Snippets Groups Projects
Commit a45918ee authored by Andrea Zoli's avatar Andrea Zoli
Browse files

Fix currentpwd memleak.

parent 6d5183c5
No related branches found
No related tags found
No related merge requests found
...@@ -29,12 +29,14 @@ ConfigurationFile::ConfigurationFile() ...@@ -29,12 +29,14 @@ ConfigurationFile::ConfigurationFile()
ConfigurationFile::~ConfigurationFile() ConfigurationFile::~ConfigurationFile()
{ {
//free(currentpwd); free(currentpwd);
} }
bool ConfigurationFile::open(char** parameters) throw(PacketExceptionIO*) bool ConfigurationFile::open(char** parameters) throw(PacketExceptionIO*)
{ {
free(currentpwd);
bool ret; bool ret;
currentpwd = getcwd(NULL, 512L); currentpwd = getcwd(NULL, 512L);
ret = InputTextFile::open(parameters); ret = InputTextFile::open(parameters);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment