Skip to content

Commit

Permalink
Medium: PE: Resolve memory leak when retrieving failure counts
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Oct 13, 2011
1 parent 1467aef commit b2987de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pengine/utils.c
Expand Up @@ -1328,8 +1328,10 @@ get_failcount(node_t * node, resource_t * rsc, int *last_failure, pe_working_set
}

if (search.count != 0) {
char *score = score2char(search.count);
crm_info("%s has failed %s times on %s",
search.rsc->id, score2char(search.count), node->details->uname);
search.rsc->id, score, node->details->uname);
crm_free(score);
}

crm_free(search.key);
Expand Down

0 comments on commit b2987de

Please sign in to comment.