Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
sssd.6667
131202-monitor-memory-leak-bug.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 131202-monitor-memory-leak-bug.patch of Package sssd.6667
From 392371cc9ee27d274ced6fae357a9416d6cd3afe Mon Sep 17 00:00:00 2001 From: Pavel Reichl <pavel.reichl@redhat.com> Date: Mon, 2 Dec 2013 15:49:04 +0000 Subject: [PATCH] monitor: memory-leak bug In case *mt_svc_restart* event can't be created free *svc* directly. (cherry picked from commit 75275a04a36dba53a261e208d1ad44780c2a5702) diff -rupN sssd-1.11.5.1-original/src/monitor/monitor.c sssd-1.11.5.1-patched/src/monitor/monitor.c --- sssd-1.11.5.1-original/src/monitor/monitor.c 2017-01-30 12:05:27.441309894 +0100 +++ sssd-1.11.5.1-patched/src/monitor/monitor.c 2017-01-30 12:07:10.558644559 +0100 @@ -2621,9 +2621,10 @@ static void mt_svc_exit_handler(int pid, tv = tevent_timeval_current_ofs(restart_delay, 0); te = tevent_add_timer(svc->mt_ctx->ev, svc, tv, mt_svc_restart, svc); - if (!te) { + if (te == NULL) { /* Nothing much we can do */ - DEBUG(SSSDBG_CRIT_FAILURE, ("Out of memory?!\n")); + DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to allocate timed event: mt_svc_restart.\n")); + talloc_free(svc); return; } } Binary files sssd-1.11.5.1-original/src/monitor/.monitor.c.rej.swp and sssd-1.11.5.1-patched/src/monitor/.monitor.c.rej.swp differ
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