aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 14:34:12 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 14:34:12 +0000
commitdf95dd782ea1ca553ed0aecf7c818bd45fe7592b (patch)
tree8a2b4133d402339611ac585d407f94ad8aeb19d4 /apps
parentfa335f6f3d62561ab8b2c5fb9b9c4f1ab131ed87 (diff)
Add a couple more missing unrefs of queue member objects
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82240 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 9c973e082..ac12f89e3 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -3773,6 +3773,7 @@ static int queue_function_queuememberlist(struct ast_channel *chan, char *cmd, c
buflen += strlen(m->interface);
/* Safeguard against overflow (negative length) */
if (buflen >= len - 2) {
+ ao2_ref(m, -1);
ast_log(LOG_WARNING, "Truncating list\n");
break;
}
@@ -4520,6 +4521,7 @@ static char *complete_queue_remove_member(const char *line, const char *word, in
ao2_ref(m, -1);
return tmp;
}
+ ao2_ref(m, -1);
}
ast_mutex_unlock(&q->lock);
}