3 Star 0 Fork 8

ocs-commit/nbdkit

forked from OpenCloudOS Stream/nbdkit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
965910b1f0864ab52221376e584c65d1d9e78204.patch 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-12-31 10:43 +08:00 . - [Type] bugfix
From 965910b1f0864ab52221376e584c65d1d9e78204 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Fri, 20 Sep 2024 20:47:12 +0100
Subject: [PATCH] lzip: Fix memory leak
==1930882== 206,912 bytes in 2 blocks are definitely lost in loss record 20 of 20
==1930882== at 0xC980347: realloc (vg_replace_malloc.c:1800)
==1930882== by 0xC999DFE: lzip_prepare (lzipindex.c:46)
==1930882== by 0x10D81C: filter_prepare (filters.c:342)
==1930882== by 0x10F25A: backend_prepare (backend.c:332)
==1930882== by 0x119D2B: protocol_common_open (protocol-handshake.c:88)
==1930882== by 0x11A3B6: finish_newstyle_options (protocol-handshake-newstyle.c:338)
==1930882== by 0x11EBB4: negotiate_handshake_newstyle_options.lto_priv.0 (protocol-handshake-newstyle.c:638)
==1930882== by 0x1147AE: handle_single_connection (protocol-handshake-newstyle.c:1010)
==1930882== by 0x118F90: start_thread (sockets.c:377)
==1930882== by 0xCCA3796: start_thread (pthread_create.c:447)
==1930882== by 0xCD27593: clone (clone.S:100)
Fixes: commit 2b5663f6b0ff7bc0814c775c01d54ec8ab8312d5
---
filters/lzip/lzipfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/filters/lzip/lzipfile.c b/filters/lzip/lzipfile.c
index 966f4716..27c8d351 100644
--- a/filters/lzip/lzipfile.c
+++ b/filters/lzip/lzipfile.c
@@ -225,7 +225,7 @@ void
lzipfile_close (lzipfile *lz)
{
if (lz) {
- lzip_index_finalize (&lz->idx);
+ lzip_index_destroy (&lz->idx);
free (lz);
}
}
--
GitLab
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-commit/nbdkit.git
git@gitee.com:ocs-commit/nbdkit.git
ocs-commit
nbdkit
nbdkit
master

搜索帮助