diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2012-09-26 23:08:21 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-10-24 11:37:52 -0500 |
commit | 640cc21de6e1324be9a1b90ea70c9c2ba61cace0 (patch) | |
tree | 34d582466adddc52fa4a4060cfde212dd5263030 /src/usr | |
parent | 151af22184f03b1393ec5f4ca390272d06cf1e2f (diff) | |
download | talos-hostboot-640cc21de6e1324be9a1b90ea70c9c2ba61cace0.tar.gz talos-hostboot-640cc21de6e1324be9a1b90ea70c9c2ba61cace0.zip |
Issue 47484: Memory leak in attribute sync.
Change-Id: I4e859fd3def9945a8a985b8aabfbc72e22207b2d
RTC: 47484
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1901
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/mbox/mailboxsp.C | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/usr/mbox/mailboxsp.C b/src/usr/mbox/mailboxsp.C index 0538d086a..a5b110527 100644 --- a/src/usr/mbox/mailboxsp.C +++ b/src/usr/mbox/mailboxsp.C @@ -349,14 +349,27 @@ void MailboxSp::handleNewMessage(msg_t * i_msg) ERRORLOG::ERRL_SEV_INFORMATIONAL, MBOX::MOD_MBOXSRV_SENDMSG, MBOX::RC_MAILBOX_DISABLED, // reason Code - i_msg->data[0], // queue id + i_msg->data[0], // queue id payload->type // message type ); i_msg->data[1] = reinterpret_cast<uint64_t>(err); + payload->extra_data = NULL; + msg_respond(iv_msgQ,i_msg); } + + if( mbox_msg.msg_payload.extra_data != NULL ) + { + TRACDCOMP( g_trac_mbox, "free extra_data %p", + mbox_msg.msg_payload.extra_data ); + + free ( mbox_msg.msg_payload.extra_data ); + + mbox_msg.msg_payload.extra_data = NULL; + } + } else { |