numactl: fix memory leaks when run with -H
signed-off-by:chenhaixiang3@huawei.com
This commit is contained in:
parent
a71d784a44
commit
6cde2a7ea4
27
0009-fix-fix-memory-leaks-when-run-with-H.patch
Normal file
27
0009-fix-fix-memory-leaks-when-run-with-H.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 8daaae302b214539bba6b002c7c40b700ddcdc4b Mon Sep 17 00:00:00 2001
|
||||||
|
From: will_niutao <vincenttom@users.noreply.github.com>
|
||||||
|
Date: Thu, 24 Aug 2023 11:08:23 +0800
|
||||||
|
Subject: [PATCH] fix: fix memory leaks when run with -H
|
||||||
|
|
||||||
|
Conflict: NA
|
||||||
|
Reference: https://github.com/numactl/numactl/commit/8daaae302b214539bba6b002c7c40b700ddcdc4b
|
||||||
|
---
|
||||||
|
numactl.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/numactl.c b/numactl.c
|
||||||
|
index 47cbf39..562f319 100755
|
||||||
|
--- a/numactl.c
|
||||||
|
+++ b/numactl.c
|
||||||
|
@@ -242,6 +242,8 @@ static void print_node_cpus(int node)
|
||||||
|
printf(" %d", i);
|
||||||
|
}
|
||||||
|
putchar('\n');
|
||||||
|
+
|
||||||
|
+ numa_free_cpumask(cpus);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void hardware(void)
|
||||||
|
--
|
||||||
|
2.39.3
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: numactl
|
Name: numactl
|
||||||
Version: 2.0.16
|
Version: 2.0.16
|
||||||
Release: 7
|
Release: 8
|
||||||
Summary: Library for tuning for Non Uniform Memory Access machines
|
Summary: Library for tuning for Non Uniform Memory Access machines
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/numactl/numactl
|
URL: https://github.com/numactl/numactl
|
||||||
@ -15,6 +15,7 @@ Patch0005: 0005-numactl.c-Remove-unused-variable.patch
|
|||||||
Patch0006: 0006-numactl.c-Fix-merging-of-neighboring-pages-policies-.patch
|
Patch0006: 0006-numactl.c-Fix-merging-of-neighboring-pages-policies-.patch
|
||||||
Patch0007: 0007-shm.c-Replace-stat64-fstat64-ftruncate64mmap64-with-.patch
|
Patch0007: 0007-shm.c-Replace-stat64-fstat64-ftruncate64mmap64-with-.patch
|
||||||
Patch0008: 0008-numastat-Update-system-hugepages-memory-info-from-sy.patch
|
Patch0008: 0008-numastat-Update-system-hugepages-memory-info-from-sy.patch
|
||||||
|
Patch0009: 0009-fix-fix-memory-leaks-when-run-with-H.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Simple NUMA policy support. It consists of a numactl program to run other
|
Simple NUMA policy support. It consists of a numactl program to run other
|
||||||
@ -83,6 +84,9 @@ LD_LIBRARY_PATH=$(pwd)/.libs make check
|
|||||||
%{_mandir}/man3/*.3*
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 19 2023 chenhaixiang <chenhaixiang3@huawei.com> - 2.0.16-8
|
||||||
|
- fix: fix memory leaks when run with -H
|
||||||
|
|
||||||
* Sun Jun 25 2023 wuxu <wuxu.wu@huawei.com> - 2.0.16-7
|
* Sun Jun 25 2023 wuxu <wuxu.wu@huawei.com> - 2.0.16-7
|
||||||
- numastat: Update system hugepages memory info from sysfs/node/hugepages directory
|
- numastat: Update system hugepages memory info from sysfs/node/hugepages directory
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user