From c853a8071a6efafe92e7df608ec636f43aa9d371 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 May 2018 13:28:19 +0200 Subject: [PATCH] ctdb-common: Fix CID 1435600 Signed-off-by: Volker Lendecke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Wed May 16 09:51:07 CEST 2018 on sn-devel-144 --- ctdb/common/logging.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ctdb/common/logging.c b/ctdb/common/logging.c index 3cc19331bab..dc8c4f75058 100644 --- a/ctdb/common/logging.c +++ b/ctdb/common/logging.c @@ -173,13 +173,12 @@ static bool file_log_validate(const char *option) dir = dirname(t); ret = stat(dir, &st); + free(t); if (ret != 0) { - free(t); return false; } if (! S_ISDIR(st.st_mode)) { - free(t); return false; } -- 2.47.2