File pacemaker-controld-avoid-memory-leak-when-synthesizing-failure.patch of Package pacemaker.16898
commit ec3ca56122bc18f2434a2f927509a4c759ae3b02
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Fri May 11 12:50:29 2018 -0500
Low: controld: avoid memory leak when synthesizing failure
introduced by b3f9a5bbb
Index: pacemaker-1.1.18+20180430.b12c320f5/crmd/lrm.c
===================================================================
--- pacemaker-1.1.18+20180430.b12c320f5.orig/crmd/lrm.c
+++ pacemaker-1.1.18+20180430.b12c320f5/crmd/lrm.c
@@ -1454,6 +1454,7 @@ synthesize_lrmd_failure(lrm_state_t *lrm
rsc_info = lrm_state_get_rsc_info(lrm_state, op->rsc_id, 0);
}
if (rsc_info) {
+ lrmd_free_rsc_info(rsc_info);
process_lrm_event(lrm_state, op, NULL);
} else {