diff options
author | CoprDistGit <infra@openeuler.org> | 2025-03-04 12:23:00 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-03-04 12:23:00 +0000 |
commit | 434d8166bff360cdb7039326bb617ebaca98face (patch) | |
tree | 1b0333fc674186afc80e2193efebadf8d521d51f /0051-Fix-memory-leak-in-set_connected_container_shm_path.patch | |
parent | 2ccdcb50a81459161cf6b42f0b45c2b86e1bbf76 (diff) |
automatic import of iSuladopeneuler22.03_LTS
Diffstat (limited to '0051-Fix-memory-leak-in-set_connected_container_shm_path.patch')
-rw-r--r-- | 0051-Fix-memory-leak-in-set_connected_container_shm_path.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/0051-Fix-memory-leak-in-set_connected_container_shm_path.patch b/0051-Fix-memory-leak-in-set_connected_container_shm_path.patch new file mode 100644 index 0000000..c31e092 --- /dev/null +++ b/0051-Fix-memory-leak-in-set_connected_container_shm_path.patch @@ -0,0 +1,26 @@ +From 1052a7b67a35b3504045729e1408d4ace8bf50ca Mon Sep 17 00:00:00 2001 +From: xuxuepeng <xuxuepeng1@huawei.com> +Date: Tue, 9 Apr 2024 06:35:03 +0800 +Subject: [PATCH 51/69] Fix memory leak in set_connected_container_shm_path + +Signed-off-by: xuxuepeng <xuxuepeng1@huawei.com> +--- + src/daemon/modules/spec/specs_mount.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/daemon/modules/spec/specs_mount.c b/src/daemon/modules/spec/specs_mount.c +index 6903ae40..50ee9a85 100644 +--- a/src/daemon/modules/spec/specs_mount.c ++++ b/src/daemon/modules/spec/specs_mount.c +@@ -2822,7 +2822,7 @@ static inline int set_sharable_ipc_mode(host_config *host_spec, container_config + static inline int set_connected_container_shm_path(host_config *host_spec, container_config_v2_common_config *v2_spec) + { + container_t *cont = NULL; +- char *tmp_cid = NULL; ++ __isula_auto_free char *tmp_cid = NULL; + char *right_path = NULL; + + #ifdef ENABLE_CRI_API_V1 +-- +2.34.1 + |