Merged revisions 82240 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Tue, 11 Sep 2007 14:35:06 +0000 (14:35 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 11 Sep 2007 14:35:06 +0000 (14:35 +0000)
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

apps/app_queue.c

index 4615774..5336661 100644 (file)
@@ -3981,6 +3981,7 @@ static int queue_function_queuememberlist(struct ast_channel *chan, const char *
                        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;
                        }
@@ -4787,6 +4788,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);
                }