1 Star 0 Fork 5

maqi/glusterfs

forked from src-anolis-os/glusterfs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0265-fuse-add-missing-GF_FREE-to-fuse_interrupt.patch 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
张彬琛 提交于 2021-01-20 13:34 . import glusterfs-6.0-20.el8.src.rpm
From 7455900798446681fea1a2693fac9b423ad9722a Mon Sep 17 00:00:00 2001
From: Csaba Henk <csaba@redhat.com>
Date: Tue, 9 Jul 2019 11:06:49 +0200
Subject: [PATCH 265/265] fuse: add missing GF_FREE to fuse_interrupt
Upstream:
(Reviewed on https://review.gluster.org/c/glusterfs/+/23016)
> Change-Id: Id7e003e4a53d0a0057c1c84e1cd704c80a6cb015
> Fixes: bz#1728047
> Signed-off-by: Csaba Henk <csaba@redhat.com>
BUG: 1734423
Change-Id: I50640bf9b56349ab9b07140bdce8a45a7d07ba7a
Signed-off-by: Csaba Henk <csaba@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/177298
Tested-by: RHGS Build Bot <nigelb@redhat.com>
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
---
xlators/mount/fuse/src/fuse-bridge.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index c05866b..1c946a2 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -661,7 +661,7 @@ fuse_interrupt(xlator_t *this, fuse_in_header_t *finh, void *msg,
" failed to allocate timed message",
finh->unique, fii->unique);
- return;
+ goto out;
}
dmsg->fuse_out_header.unique = finh->unique;
@@ -673,6 +673,9 @@ fuse_interrupt(xlator_t *this, fuse_in_header_t *finh, void *msg,
send_fuse_timed(this, dmsg);
}
+
+out:
+ GF_FREE(finh);
}
/*
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/maqi77/glusterfs.git
git@gitee.com:maqi77/glusterfs.git
maqi77
glusterfs
glusterfs
a8

搜索帮助

0d507c66 1850385 C8b1a773 1850385