1 Star 0 Fork 43

gaohuatao/src-iSulad

forked from src-openEuler/iSulad 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0006-Fix-memory-leak-in-ClearCniNetwork-when-calling-get_.patch 1011 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangfengtu 提交于 2021-12-02 17:07 . sync patches from upstream
From d3d44e344d2ea2213c7d595c957e8ebf0a661fd2 Mon Sep 17 00:00:00 2001
From: chengzrz <[email protected]>
Date: Sat, 27 Nov 2021 11:31:13 +0800
Subject: [PATCH 06/14] Fix memory leak in ClearCniNetwork when calling
get_sandbox_key
Signed-off-by: chengzrz <[email protected]>
---
src/daemon/entry/cri/cri_pod_sandbox_manager_service_impl.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/daemon/entry/cri/cri_pod_sandbox_manager_service_impl.cc b/src/daemon/entry/cri/cri_pod_sandbox_manager_service_impl.cc
index eb1cd09f..0a577849 100644
--- a/src/daemon/entry/cri/cri_pod_sandbox_manager_service_impl.cc
+++ b/src/daemon/entry/cri/cri_pod_sandbox_manager_service_impl.cc
@@ -748,6 +748,7 @@ auto PodSandboxManagerServiceImpl::ClearCniNetwork(const std::string &realSandbo
ERROR("Failed to umount directory %s:%s", netnsPath, strerror(errno));
}
}
+ free(netnsPath);
}
free_container_inspect(inspect_data);
return 0;
--
2.25.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gaohuatao/src-iSulad.git
[email protected]:gaohuatao/src-iSulad.git
gaohuatao
src-iSulad
src-iSulad
master

搜索帮助