diff options
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/common/logging.c | 3 |
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; } |