d84cf8
From 2ea3fc203671429d0aa9994e5bbd57f6a604523d Mon Sep 17 00:00:00 2001
d84cf8
From: Xie Changlong <xiechanglong@cmss.chinamobile.com>
d84cf8
Date: Mon, 28 Oct 2019 17:43:28 +0800
d84cf8
Subject: [PATCH 434/449] glusterd/ganesha: fix Coverity CID 1405785
d84cf8
d84cf8
To avoid double free
d84cf8
d84cf8
> upstream patch link: https://review.gluster.org/#/c/glusterfs/+/23630/
d84cf8
> updates: bz#789278
d84cf8
> Change-Id: I15ae54ed696295d4cb015668722e77983b062ccb
d84cf8
> Signed-off-by: Xie Changlong <xiechanglong@cmss.chinamobile.com>
d84cf8
d84cf8
BUG: 1787310
d84cf8
Change-Id: I15ae54ed696295d4cb015668722e77983b062ccb
d84cf8
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
d84cf8
Reviewed-on: https://code.engineering.redhat.com/gerrit/202623
d84cf8
Tested-by: RHGS Build Bot <nigelb@redhat.com>
d84cf8
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
d84cf8
---
d84cf8
 xlators/mgmt/glusterd/src/glusterd-ganesha.c | 2 +-
d84cf8
 1 file changed, 1 insertion(+), 1 deletion(-)
d84cf8
d84cf8
diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
d84cf8
index 06f028f..caba34f 100644
d84cf8
--- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c
d84cf8
+++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
d84cf8
@@ -659,8 +659,8 @@ tear_down_cluster(gf_boolean_t run_teardown)
d84cf8
                          "Failed to close dir %s. Reason :"
d84cf8
                          " %s",
d84cf8
                          CONFDIR, strerror(errno));
d84cf8
-            goto exit;
d84cf8
         }
d84cf8
+        goto exit;
d84cf8
     }
d84cf8
 
d84cf8
 out:
d84cf8
-- 
d84cf8
1.8.3.1
d84cf8