Merged revisions 82240 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r82240 | russell | 2007-09-11 09:34:12 -0500 (Tue, 11 Sep 2007) | 2 lines Add a couple more missing unrefs of queue member objects ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
74044bbb88
commit
20288b58af
1 changed files with 2 additions and 0 deletions
|
@ -3981,6 +3981,7 @@ static int queue_function_queuememberlist(struct ast_channel *chan, const char *
|
||||||
buflen += strlen(m->interface);
|
buflen += strlen(m->interface);
|
||||||
/* Safeguard against overflow (negative length) */
|
/* Safeguard against overflow (negative length) */
|
||||||
if (buflen >= len - 2) {
|
if (buflen >= len - 2) {
|
||||||
|
ao2_ref(m, -1);
|
||||||
ast_log(LOG_WARNING, "Truncating list\n");
|
ast_log(LOG_WARNING, "Truncating list\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -4787,6 +4788,7 @@ static char *complete_queue_remove_member(const char *line, const char *word, in
|
||||||
ao2_ref(m, -1);
|
ao2_ref(m, -1);
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
ao2_ref(m, -1);
|
||||||
}
|
}
|
||||||
ast_mutex_unlock(&q->lock);
|
ast_mutex_unlock(&q->lock);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue