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