1 Star 0 Fork 40

hy/multipath-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
6001-libmultipath-free-allocated-value-in-set_int.patch 725 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangjufeng 提交于 2020-01-10 17:13 . rename the package
From 5e71f6eb17cbb119f0f995f234bf1887a4f77058 Mon Sep 17 00:00:00 2001
From: Benjamin Marzinski <bmarzins@redhat.com>
Date: Thu, 11 Oct 2018 15:43:47 -0500
Subject: [PATCH] libmultipath: free allocated value in set_int
set_int() needs to free the buffer it got back from set_value()
Fixes: 8f9ac30d ("libmultipath: fix set_int error path")
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
libmultipath/dict.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libmultipath/dict.c b/libmultipath/dict.c
index bf4701ee..c3f5a6e6 100644
--- a/libmultipath/dict.c
+++ b/libmultipath/dict.c
@@ -39,6 +39,7 @@ set_int(vector strvec, void *ptr)
*int_ptr = atoi(buff);
+ FREE(buff);
return 0;
}
--
2.11.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hy-euler/multipath-tools.git
git@gitee.com:hy-euler/multipath-tools.git
hy-euler
multipath-tools
multipath-tools
master

搜索帮助