190130
From 53a6aed98aad73ff51f884bf815bccfa337eb524 Mon Sep 17 00:00:00 2001
190130
From: Barak Sason <bsasonro@redhat.com>
190130
Date: Sun, 18 Aug 2019 17:38:09 +0300
190130
Subject: [PATCH 444/449] mount/fuse - Fixing a coverity issue
190130
190130
Fixed resource leak of dict_value and newkey variables
190130
190130
CID: 1398630
190130
190130
Upstream patch https://review.gluster.org/c/glusterfs/+/23260
190130
> Updates: bz#789278
190130
>
190130
> Change-Id: I589fdc0aecaeb4f446cd29f95bad36ccd7a35beb
190130
> Signed-off-by: Barak Sason <bsasonro@redhat.com>
190130
190130
BUG: 1787310
190130
Change-Id: Id191face7b082e2e8d6e62f60b56248688d396f6
190130
Signed-off-by: Csaba Henk <csaba@redhat.com>
190130
Reviewed-on: https://code.engineering.redhat.com/gerrit/202760
190130
Tested-by: RHGS Build Bot <nigelb@redhat.com>
190130
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
190130
---
190130
 xlators/mount/fuse/src/fuse-bridge.c | 1 +
190130
 1 file changed, 1 insertion(+)
190130
190130
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
190130
index d17320b..f61fa39 100644
190130
--- a/xlators/mount/fuse/src/fuse-bridge.c
190130
+++ b/xlators/mount/fuse/src/fuse-bridge.c
190130
@@ -4165,6 +4165,7 @@ fuse_setxattr(xlator_t *this, fuse_in_header_t *finh, void *msg,
190130
                    "%" PRIu64 ": SETXATTR value allocation failed",
190130
                    finh->unique);
190130
             op_errno = ENOMEM;
190130
+            GF_FREE(newkey);
190130
             goto done;
190130
         }
190130
         memcpy(dict_value, value, fsi->size);
190130
-- 
190130
1.8.3.1
190130