Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
1230-Plug-memory-leak-in-FreeBSD-cpu_sup-util.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1230-Plug-memory-leak-in-FreeBSD-cpu_sup-util.patch of Package erlang
From af8348ce83558ac643ee202d76835018c0344902 Mon Sep 17 00:00:00 2001 From: VlkrS <47375452+VlkrS@users.noreply.github.com> Date: Tue, 28 Mar 2023 19:34:57 +0200 Subject: [PATCH] Plug memory leak in FreeBSD cpu_sup:util Free memory allocated for cpu_times in line 688 --- lib/os_mon/c_src/cpu_sup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/os_mon/c_src/cpu_sup.c b/lib/os_mon/c_src/cpu_sup.c index 415168fc72..e8a9cb9d61 100644 --- a/lib/os_mon/c_src/cpu_sup.c +++ b/lib/os_mon/c_src/cpu_sup.c @@ -707,7 +707,8 @@ static void util_measure(unsigned int **result_vec, int *result_sz) { rv[10] = CU_HARD_IRQ; rv[11] = cpu_times[CP_INTR + offset]; rv += CU_BSD_VALUES*2; } - + + free((void*) cpu_times); *result_sz = 2 + 2*CU_BSD_VALUES * no_of_cpus; } #endif -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor