Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
pacemaker.29826
bsc#1211678-0005-Fix-scheduler-Free-the-result-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1211678-0005-Fix-scheduler-Free-the-result-of-pe__node_display_na.patch of Package pacemaker.29826
From fe0f74071de1c8de5c8c97c9b5b08a63ef756b54 Mon Sep 17 00:00:00 2001 From: Chris Lumens <clumens@redhat.com> Date: Tue, 26 Jan 2021 10:13:23 -0500 Subject: [PATCH 5/6] Fix: scheduler: Free the result of pe__node_display_name in one place. --- lib/pengine/pe_output.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pengine/pe_output.c b/lib/pengine/pe_output.c index f1a6b43b1..23e7c8ea1 100644 --- a/lib/pengine/pe_output.c +++ b/lib/pengine/pe_output.c @@ -1146,7 +1146,9 @@ pe__node_text(pcmk__output_t *out, va_list args) { free(buf); free(node_name); } else { - out->begin_list(out, NULL, NULL, "Node: %s", pe__node_display_name(node, print_clone_detail)); + char *node_name = pe__node_display_name(node, print_clone_detail); + out->begin_list(out, NULL, NULL, "Node: %s", node_name); + free(node_name); } return pcmk_rc_ok; -- 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