From 9d19e344d300e372f1b936521d405f0fbebf92a8 Mon Sep 17 00:00:00 2001 From: Patrick Brosi Date: Mon, 13 May 2019 02:27:12 +0200 Subject: [PATCH] refactoring --- src/pfaedle/PfaedleMain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pfaedle/PfaedleMain.cpp b/src/pfaedle/PfaedleMain.cpp index 80a8ec4..2b37aea 100644 --- a/src/pfaedle/PfaedleMain.cpp +++ b/src/pfaedle/PfaedleMain.cpp @@ -334,6 +334,8 @@ std::vector getCfgPaths(const Config& cfg) { } } + if (buf) free(buf); + // install prefix global configuration path, if available { auto path = std::string(INSTALL_PREFIX) + @@ -361,8 +363,6 @@ std::vector getCfgPaths(const Config& cfg) { } } - if (buf) free(buf); - // CWD { char cwd[PATH_MAX];