summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-04-24 19:29:20 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-04-24 19:29:20 -0300
commit4e2c2d79271bfecffcbe3166dde2d2fa04bdc746 (patch)
tree7f0c520407793f44724616d1d38e1a4d88b03a63 /Settings.c
parenteb1cd4aca616afd74afa955bb8050157143bcf95 (diff)
Fix resource leak.
Diffstat (limited to 'Settings.c')
-rw-r--r--Settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Settings.c b/Settings.c
index 3198cb6b..d95f8d02 100644
--- a/Settings.c
+++ b/Settings.c
@@ -265,7 +265,6 @@ Settings* Settings_new(ProcessList* pl, Header* header, int cpuCount) {
// Transition to new location and delete old configuration file
if (Settings_write(this))
unlink(legacyDotfile);
- free(legacyDotfile);
}
} else {
this->changed = true;
@@ -280,5 +279,6 @@ Settings* Settings_new(ProcessList* pl, Header* header, int cpuCount) {
pl->highlightThreads = false;
}
}
+ free(legacyDotfile);
return this;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy