commit 566a6901e5badb712809473527f42678267460a8 Author: Andrew Beekhof Date: Tue Apr 1 16:00:40 2014 +1100 Fix: PE: Potential memory leak (cherry picked from commit b1474d8feb1d975f7a87b4008aabc6ff338d2349) diff --git a/lib/pengine/utils.c b/lib/pengine/utils.c index 1e827e0..410acfc 100644 --- a/lib/pengine/utils.c +++ b/lib/pengine/utils.c @@ -358,7 +358,7 @@ custom_action(resource_t * rsc, char *key, const char *task, GListPtr possible_matches = NULL; CRM_CHECK(key != NULL, return NULL); - CRM_CHECK(task != NULL, return NULL); + CRM_CHECK(task != NULL, free(key); return NULL); if (save_action && rsc != NULL) { possible_matches = find_actions(rsc->actions, key, on_node);