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