HomeClusterLabs Projects

Fix: libcrmcommon: Don't allocate a ptr array until it's needed.

Description

Fix: libcrmcommon: Don't allocate a ptr array until it's needed.

This saves from having to just immediately free it (which wasn't being
done, introducing a memory leak) if the input string was NULL.

Details

Provenance
clumensAuthored on Mar 20 2020, 10:08 AM
Parents
rPda6730c6b207: Fix: tools: Free the result of g_option_context_get_help.
Branches
Unknown
Tags
Unknown

Event Timeline