Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
procps
0027-pgrep-Fixing-memory-leak-in-do_regcomp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0027-pgrep-Fixing-memory-leak-in-do_regcomp.patch of Package procps
From 69de8db3e27b63fdcd8e3dce4d63e725d80bf05b Mon Sep 17 00:00:00 2001 From: Jaromir Capik <jcapik@redhat.com> Date: Thu, 2 Jan 2014 18:39:27 +0100 Subject: [PATCH] pgrep: Fixing memory leak in do_regcomp() --- pgrep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git pgrep.c pgrep.c index 6290ec5..93a7c89 100644 --- pgrep.c +++ pgrep.c @@ -460,6 +460,9 @@ static regex_t * do_regcomp (void) } re_err = regcomp (preg, re, REG_EXTENDED | REG_NOSUB | opt_case); + + if (opt_exact) free(re); + if (re_err) { regerror (re_err, preg, errbuf, sizeof(errbuf)); fputs(errbuf,stderr); -- 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