summaryrefslogtreecommitdiff
path: root/ctdb/common
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-05-15 13:28:19 +0200
committerAmitay Isaacs <amitay@samba.org>2018-05-16 09:51:07 +0200
commitc853a8071a6efafe92e7df608ec636f43aa9d371 (patch)
treea0649350cfc4a44cf66629fe88d7372e1e1b5784 /ctdb/common
parent215d8448f0e51c4f5ffdcee6003dcbce4d1440a5 (diff)
downloadsamba-c853a8071a6efafe92e7df608ec636f43aa9d371.tar.gz
ctdb-common: Fix CID 1435600
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Wed May 16 09:51:07 CEST 2018 on sn-devel-144
Diffstat (limited to 'ctdb/common')
-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;
}