File pacemaker-fencing-commands-use-after-free.patch of Package pacemaker.3577
commit 93b9f2c30dd4b03265b34c13175f142bf270202a
Author: Klaus Wenninger <klaus.wenninger@aon.at>
Date: Thu Jan 14 17:18:29 2016 +0100
Fix: fencing: free only after last usage
makes coverity happy
diff --git a/fencing/commands.c b/fencing/commands.c
index e933404..5eb6eff 100644
--- a/fencing/commands.c
+++ b/fencing/commands.c
@@ -1224,8 +1224,8 @@ stonith_level_register(xmlNode *msg, char **desc)
/* Sanity-check arguments */
if (mode >= 3 || (id <= 0) || (id >= ST_LEVEL_MAX)) {
- free(target);
crm_trace("Could not add %s[%d] (%d) to the topology (%d active entries)", target, id, mode, g_hash_table_size(topology));
+ free(target);
crm_log_xml_err(level, "Bad topology");
return -EINVAL;
}