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

Richard Mudgett asteriskteam at digium.com
Fri Nov 3 12:18:08 CDT 2017


Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/6980


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(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/80/6980/1

diff --git a/res/res_stasis_mailbox.c b/res/res_stasis_mailbox.c
index 4522adc..5ed061d 100644
--- a/res/res_stasis_mailbox.c
+++ b/res/res_stasis_mailbox.c
@@ -93,6 +93,7 @@
 		}
 	}
 	ao2_iterator_destroy(&iter);
+	ao2_ref(mailboxes, -1);
 
 	return array;
 }

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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7d33c1635713047e7d1597c9d882f7dc006d94b4
Gerrit-Change-Number: 6980
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171103/978ee183/attachment.html>


More information about the asterisk-code-review mailing list