diff options
author | Barak Sason <bsasonro@redhat.com> | 2019-08-18 17:38:09 +0300 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2019-08-20 06:29:13 +0000 |
commit | 25cf0d24caa11bdfefe10c93541da07c635d4cfe (patch) | |
tree | af2f3ba9e830a25818773c7d82378d60b39d739f /xlators/mount | |
parent | b1dc7723610325789ba91220ab414e821ec14119 (diff) |
mount/fuse - Fixing a coverity issue
Fixed resource leak of dict_value and newkey variables
CID: 1398630
Updates: bz#789278
Change-Id: I589fdc0aecaeb4f446cd29f95bad36ccd7a35beb
Signed-off-by: Barak Sason <bsasonro@redhat.com>
Diffstat (limited to 'xlators/mount')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 836d07ddfde..2acfd12d84c 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -4066,6 +4066,7 @@ fuse_setxattr(xlator_t *this, fuse_in_header_t *finh, void *msg, "%" PRIu64 ": SETXATTR value allocation failed", finh->unique); op_errno = ENOMEM; + GF_FREE(newkey); goto done; } memcpy(dict_value, value, fsi->size); |