Blame SOURCES/bz1078078-pcmk-pe_potential_memory_leak.patch
|
 |
7ebc05 |
commit 566a6901e5badb712809473527f42678267460a8
|
|
 |
7ebc05 |
Author: Andrew Beekhof <andrew@beekhof.net>
|
|
 |
7ebc05 |
Date: Tue Apr 1 16:00:40 2014 +1100
|
|
 |
7ebc05 |
|
|
 |
7ebc05 |
Fix: PE: Potential memory leak
|
|
 |
7ebc05 |
|
|
 |
7ebc05 |
(cherry picked from commit b1474d8feb1d975f7a87b4008aabc6ff338d2349)
|
|
 |
7ebc05 |
|
|
 |
7ebc05 |
diff
|
|
 |
7ebc05 |
index 1e827e0..410acfc 100644
|
|
 |
7ebc05 |
|
|
 |
7ebc05 |
|
|
 |
7ebc05 |
@@ -358,7 +358,7 @@ custom_action(resource_t * rsc, char *key, const char *task,
|
|
 |
7ebc05 |
GListPtr possible_matches = NULL;
|
|
 |
7ebc05 |
|
|
 |
7ebc05 |
CRM_CHECK(key != NULL, return NULL);
|
|
 |
7ebc05 |
- CRM_CHECK(task != NULL, return NULL);
|
|
 |
7ebc05 |
+ CRM_CHECK(task != NULL, free(key); return NULL);
|
|
 |
7ebc05 |
|
|
 |
7ebc05 |
if (save_action && rsc != NULL) {
|
|
 |
7ebc05 |
possible_matches = find_actions(rsc->actions, key, on_node);
|