HomeClusterLabs Projects

Fix: tools: Only free things in crm_simulate that aren't NULL.

Description

Fix: tools: Only free things in crm_simulate that aren't NULL.

Don't assume these global variables were ever set up. If things go
wrong in option processing, it's possible they will be freed before they
were ever initialized.

Details

Provenance
clumensAuthored on Mar 25 2020, 9:01 AM
Parents
rPad43f1b9bcd0: Refactor: tools: Use an options struct in crm_simulate.
Branches
Unknown
Tags
Unknown

Event Timeline