Hi, Andrew

I found small memory leak of pengine.
It seems to leak out in Pacemaker-1.1 and Pacemaker-1.0.

Best Regards,
Yuusuke
-- 
----------------------------------------
METRO SYSTEMS CO., LTD

Yuusuke Iida
Mail: iiday...@intellilink.co.jp
----------------------------------------
diff -r 9971ebba4494 lib/pengine/utils.c
--- a/lib/pengine/utils.c	Wed Aug 31 11:02:11 2011 +1000
+++ b/lib/pengine/utils.c	Tue Sep 06 18:13:39 2011 +0900
@@ -1322,8 +1322,10 @@
     }
 
     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);
_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to