[Asterisk-code-review] res stasis mailbox.c: Fix leak of mailbox container. (asterisk[13])

Jenkins2 asteriskteam at digium.com
Mon Nov 6 06:27:30 CST 2017


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/6978 )

Change subject: res_stasis_mailbox.c: Fix leak of mailbox container.
......................................................................

res_stasis_mailbox.c: Fix leak of mailbox container.

Change-Id: I7d33c1635713047e7d1597c9d882f7dc006d94b4
---
M res/res_stasis_mailbox.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Corey Farrell: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/res/res_stasis_mailbox.c b/res/res_stasis_mailbox.c
index d061d70..6e5e5ff 100644
--- a/res/res_stasis_mailbox.c
+++ b/res/res_stasis_mailbox.c
@@ -95,6 +95,7 @@
 		}
 	}
 	ao2_iterator_destroy(&iter);
+	ao2_ref(mailboxes, -1);
 
 	return array;
 }

-- 
To view, visit https://gerrit.asterisk.org/6978
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I7d33c1635713047e7d1597c9d882f7dc006d94b4
Gerrit-Change-Number: 6978
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171106/68494e59/attachment.html>


More information about the asterisk-code-review mailing list