8 Star 0 Fork 5

src-anolis-os/glusterfs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0427-storage-posix-Fixing-a-coverity-issue.patch 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
geliwei 提交于 2021-06-16 16:09 . update to glusterfs-6.0-49.1.el8.src.rpm
From 3943fce5818a353117fc1c492e6383434d742979 Mon Sep 17 00:00:00 2001
From: Barak Sason <[email protected]>
Date: Sun, 18 Aug 2019 17:52:04 +0300
Subject: [PATCH 427/449] storage/posix - Fixing a coverity issue
Fixed a resource leak of variable 'pfd'
backport of https://review.gluster.org/#/c/glusterfs/+/23261/
>CID: 1400673
>Updates: bz#789278
>Change-Id: I78e1e8a89e0604b56e35a75c25d436b35db096c3
>Signed-off-by: Barak Sason <[email protected]>
BUG: 1787310
Change-Id: I78e1e8a89e0604b56e35a75c25d436b35db096c3
Signed-off-by: Barak Sason Rofman <[email protected]>
Reviewed-on: https://code.engineering.redhat.com/gerrit/202563
Tested-by: RHGS Build Bot <[email protected]>
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <[email protected]>
---
xlators/storage/posix/src/posix-inode-fd-ops.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c
index bcce06e..5748b9f 100644
--- a/xlators/storage/posix/src/posix-inode-fd-ops.c
+++ b/xlators/storage/posix/src/posix-inode-fd-ops.c
@@ -1603,6 +1603,7 @@ posix_open(call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
if (op_ret == -1) {
gf_msg(this->name, GF_LOG_ERROR, errno, P_MSG_FSTAT_FAILED,
"pre-operation fstat failed on fd=%p", fd);
+ GF_FREE(pfd);
goto out;
}
--
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

搜索帮助