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.