HomeClusterLabs Projects

Fix: tools: free allocated memory correctly in crm_resource

Description

Fix: tools: free allocated memory correctly in crm_resource

Previously update_dataset() only freed data_set->input, whereas
calling cleanup_alloc_calculations() will free all memory allocated
by calls to do_calculations(), run_simulation() and cluster_status().
I have traced the logic carefully to be sure this is appropriate
and has no unintended effects.

Details

Provenance
kgaillotAuthored on Mar 5 2015, 3:52 PM
Parents
rPdd39b01a083c: tools: Clarify logic in crm_resource with comments and defined constant
Branches
Unknown
Tags
Unknown

Event Timeline