Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
procps
0028-sysctl-Fixing-memory-leaks-in-PreloadSyste...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0028-sysctl-Fixing-memory-leaks-in-PreloadSystem.patch of Package procps
From 8622b582da06fb93a8f06d302215269835fca9a9 Mon Sep 17 00:00:00 2001 From: Jaromir Capik <jcapik@redhat.com> Date: Thu, 2 Jan 2014 19:49:36 +0100 Subject: [PATCH] sysctl: Fixing memory leaks in PreloadSystem() --- sysctl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git sysctl.c sysctl.c index 33c9403..51af15d 100644 --- sysctl.c +++ sysctl.c @@ -645,6 +645,13 @@ static int PreloadSystem(void) printf(_("* Applying %s ...\n"), DEFAULT_PRELOAD); rc |= Preload(DEFAULT_PRELOAD); } + + /* cleaning */ + for (i = 0; i < ncfgs; ++i) { + free(cfgs[i]); + } + if (cfgs) free(cfgs); + return rc; } -- 1.7.9.2
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