HomeClusterLabs Projects

Test: libcrmcommon: Avoid memory leak in pcmk__xe_set_score() unit tests

Description

Test: libcrmcommon: Avoid memory leak in pcmk__xe_set_score() unit tests

Ensure allocated XML gets freed.

Also drop a redundant test. "Initializing" an attribute to NULL does
nothing. That case and the "name is undefined" case are the same.

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

Details

Provenance
nrwahl2Authored on Apr 19 2024, 3:47 PM
Parents
rP0fa96573ae6a: API: libcib: New cib_score_update cib_call_options value
Branches
Unknown
Tags
Unknown