HomeClusterLabs Projects

Fix: scheduler: avoid memory leak when displaying clones

Description

Fix: scheduler: avoid memory leak when displaying clones

Previously, pe__clone_default() unconditionally created a hash table for
stopped instances, but didn't free it in every code path.

Now, only create the table when we have something to put in it and might
actually use it, and ensure it always gets freed.

Details

Provenance
kgaillotAuthored on Jan 20 2022, 4:03 PM
Parents
rP3f0398825be2: Merge pull request #2614 from kgaillot/best-practices
Branches
Unknown
Tags
Unknown

Event Timeline