From 8757959ac2b64aa30cb748822c858c0c2d0410dd Mon Sep 17 00:00:00 2001
From: jiazhenyuan <jiazhenyuan@uniontech.com>
Date: Mon, 6 Sep 2021 16:50:27 +0800
Subject: [PATCH] Fix memory leaks in the chcpu

---
 sys-utils/chcpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys-utils/chcpu.c b/sys-utils/chcpu.c
index c4e5bc7..527bce5 100644
--- a/sys-utils/chcpu.c
+++ b/sys-utils/chcpu.c
@@ -383,6 +383,7 @@ int main(int argc, char *argv[])
 		break;
 	}
 
+	CPU_FREE(cpu_set);
 	ul_unref_path(sys);
 
 	return rc == 0 ? EXIT_SUCCESS :
-- 
1.8.3.1

