---
 src/mbc/mbcsv_util.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/mbc/mbcsv_util.c b/src/mbc/mbcsv_util.c
index 38a17cf17..8c2efaee6 100644
--- a/src/mbc/mbcsv_util.c
+++ b/src/mbc/mbcsv_util.c
@@ -1054,7 +1054,12 @@ uint32_t mbcsv_send_msg(PEER_INST *peer, MBCSV_EVT 
*evt_msg, uint8_t event)
                                               peer->peer_anchor) !=
                    NCSCC_RC_SUCCESS) {
                        /* Failure implies communications are down */
-                       TRACE_LEAVE();
+                       if (evt_msg->info.peer_msg.info.client_msg.uba.ub !=
+                           NULL)
+                               m_MMGR_FREE_BUFR_LIST(
+                                   evt_msg->info.peer_msg.info.client_msg.uba
+                                       .ub);
+                       TRACE_LEAVE2("Unable to send async message to peer");
                        return NCSCC_RC_FAILURE;
                }
        }
-- 
2.40.1



_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to