HomeClusterLabs Projects

Low: tools: Fix memory leak in cli_resource_delete()

Description

Low: tools: Fix memory leak in cli_resource_delete()

pcmk__copy_node_list() made a copy of each pcmk_node_t object, but we
never freed those copies. Since we don't modify the nodes in this
function, we can make a shallow copy using g_list_copy().

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 3 2025, 7:39 PM
Parents
rP524016f32b27: Refactor: tools: Some best practices in cli_resource_delete()
Branches
Unknown
Tags
Unknown