dmstats: Fix memory leak on error path
This commit is contained in:
parent
53aa4f5ba0
commit
5ab6305ae8
25
0034-dmstats-Fix-memory-leak-on-error-path.patch
Normal file
25
0034-dmstats-Fix-memory-leak-on-error-path.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From d1f0b89e65fd8817930bbf89051fe03efb0a1db5 Mon Sep 17 00:00:00 2001
|
||||
From: Marian Csontos <mcsontos@redhat.com>
|
||||
Date: Tue, 28 Nov 2023 21:41:35 +0100
|
||||
Subject: [PATCH] dmstats: Fix memory leak on error path
|
||||
|
||||
---
|
||||
libdm/libdm-stats.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c
|
||||
index dc2907f..62be5de 100644
|
||||
--- a/libdm/libdm-stats.c
|
||||
+++ b/libdm/libdm-stats.c
|
||||
@@ -1970,7 +1970,7 @@ static int _stats_create_region(struct dm_stats *dms, uint64_t *region_id,
|
||||
(strlen(hist_arg)) ? HISTOGRAM_ARG : "",
|
||||
hist_arg)) < 0) {
|
||||
log_error(err_fmt, PRECISE_ARG " option.");
|
||||
- return 0;
|
||||
+ goto out;
|
||||
}
|
||||
} else
|
||||
opt_args = dm_strdup("");
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
Name: lvm2
|
||||
Version: 2.03.14
|
||||
Release: 14
|
||||
Release: 15
|
||||
Epoch: 8
|
||||
Summary: Tools for logical volume management
|
||||
License: GPLv2+ and LGPLv2.1 and BSD
|
||||
@ -82,6 +82,7 @@ Patch30: 0030-udev-create-symlinks-and-watch-even-in-suspended-sta.patch
|
||||
Patch31: 0031-udev-import-previous-results-of-blkid-when-in-suspen.patch
|
||||
Patch32: 0032-clean-up-group-struct-in-_stats_create_group-error-path.patch
|
||||
Patch33: 0033-dm-event-release-buffer-on-dm_event_get_version.patch
|
||||
Patch34: 0034-dmstats-Fix-memory-leak-on-error-path.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
@ -508,6 +509,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Oct 23 2024 yanshuai <yanshuai@kylinos.cn> - 8:2.03.14-15
|
||||
- dmstats: Fix memory leak on error path
|
||||
|
||||
* Fri Feb 2 2024 peng.zou <peng.zou@shingroup.cn> - 8:2.03.14-14
|
||||
- lvm2-lockd: add suport for ppc64le
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user