---
src/imm/agent/imma_om_api.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/imm/agent/imma_om_api.cc b/src/imm/agent/imma_om_api.cc
index f024cc997..abb71ce34 100644
--- a/src/imm/agent/imma_om_api.cc
+++ b/src/imm/agent/imma_om_api.cc
@@ -1127,6 +1127,11 @@ mds_send_fail:
if (m_NCS_LOCK(&cb->cb_lock, NCS_LOCK_WRITE) != NCSCC_RC_SUCCESS) {
rc = SA_AIS_ERR_LIBRARY;
TRACE_4("ERR_LIBRARY: Lock failed");
+ /* Free ao_node */
+ if (ao_node) {
+ free(ao_node);
+ ao_node = NULL;
+ }
/* Losing track of the pending reply count, but ERR_LIBRARY dominates*/
goto lock_fail;
}
--
2.17.1
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel