summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-12-20 16:56:49 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-12-20 16:56:49 +0100
commit5f2350251bddaa3be7fe2fbc510cf253e7fc971f (patch)
treecdd017466d7c85416961530877b8cc1518d00112 /src
parentc4f5bbfab513cd5291fbec7f0781be18c9aeb4f4 (diff)
Fix memory leak.
Diffstat (limited to 'src')
-rw-r--r--src/configfile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configfile.cc b/src/configfile.cc
index 6b0d14f..7a063d8 100644
--- a/src/configfile.cc
+++ b/src/configfile.cc
@@ -65,7 +65,7 @@ static std::string configPath()
configpath = szPath;
}
#else
- std::string configpath = strdup(getenv("HOME"));
+ std::string configpath = getenv("HOME");
#endif
configpath += SEP;
configpath += CONFIGDIRNAME;