8 Star 0 Fork 5

src-anolis-os/glusterfs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0444-mount-fuse-Fixing-a-coverity-issue.patch 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
geliwei 提交于 2021-06-16 16:09 . update to glusterfs-6.0-49.1.el8.src.rpm
From 53a6aed98aad73ff51f884bf815bccfa337eb524 Mon Sep 17 00:00:00 2001
From: Barak Sason <[email protected]>
Date: Sun, 18 Aug 2019 17:38:09 +0300
Subject: [PATCH 444/449] mount/fuse - Fixing a coverity issue
Fixed resource leak of dict_value and newkey variables
CID: 1398630
Upstream patch https://review.gluster.org/c/glusterfs/+/23260
> Updates: bz#789278
>
> Change-Id: I589fdc0aecaeb4f446cd29f95bad36ccd7a35beb
> Signed-off-by: Barak Sason <[email protected]>
BUG: 1787310
Change-Id: Id191face7b082e2e8d6e62f60b56248688d396f6
Signed-off-by: Csaba Henk <[email protected]>
Reviewed-on: https://code.engineering.redhat.com/gerrit/202760
Tested-by: RHGS Build Bot <[email protected]>
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <[email protected]>
---
xlators/mount/fuse/src/fuse-bridge.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index d17320b..f61fa39 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -4165,6 +4165,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);
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-os/glusterfs.git
[email protected]:src-anolis-os/glusterfs.git
src-anolis-os
glusterfs
glusterfs
a8

搜索帮助