From 5f2350251bddaa3be7fe2fbc510cf253e7fc971f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 20 Dec 2015 16:56:49 +0100 Subject: Fix memory leak. --- src/configfile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3