Unverified Commit 8dd5c77f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!4657 perf/x86/amd/uncore: Fix memory leak for events array

Merge Pull Request from: @kile2009 
 
Fixes: 39621c58 ("perf/x86/amd/uncore: Use dynamic events array")

backport the patch from the mainline to address the memory leak issue 
 
Link:https://gitee.com/openeuler/kernel/pulls/4657

 

Reviewed-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents f7da99dd e2a02313
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -553,6 +553,7 @@ static void uncore_clean_online(void)

	hlist_for_each_entry_safe(uncore, n, &uncore_unused_list, node) {
		hlist_del(&uncore->node);
		kfree(uncore->events);
		kfree(uncore);
	}
}