From a283ad4ed27b19da176e75d4bec521dea067fedc 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 c4e5bc7e29..527bce5586 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 :
