summaryrefslogtreecommitdiff
path: root/ctdb/common/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/common/logging.c')
-rw-r--r--ctdb/common/logging.c3
1 files changed, 1 insertions, 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;
}