diff options
author | Steve Murphy <murf@digium.com> | 2008-04-17 14:45:16 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2008-04-17 14:45:16 +0000 |
commit | 5203c664de91b5a88c6884e7f962f9d313505ba2 (patch) | |
tree | 5b8f6e1ab1363570147abc9f72481a1d953eecc8 /channels | |
parent | 60a9d14d564909646f28c4d384ad2ea5277b9cdc (diff) |
Thanks to snuff for finding these omissions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index df0806740..4c95c3398 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13075,6 +13075,7 @@ static char *sip_prune_realtime(struct ast_cli_entry *e, int cmd, struct ast_cli ao2_lock(pi); if (name && regexec(®exbuf, pi->name, 0, NULL, 0)) { unref_peer(pi, "toss iterator peer ptr before continue"); + ao2_unlock(pi); continue; }; if (ast_test_flag(&pi->flags[1], SIP_PAGE2_RTCACHEFRIENDS)) { @@ -13098,6 +13099,7 @@ static char *sip_prune_realtime(struct ast_cli_entry *e, int cmd, struct ast_cli ao2_lock(ui); if (name && regexec(®exbuf, ui->name, 0, NULL, 0)) { unref_user(ui, "toss iterator user ptr before continue"); + ao2_unlock(ui); continue; }; if (ast_test_flag(&ui->flags[1], SIP_PAGE2_RTCACHEFRIENDS)) { |