diff --git a/apps/app_queue.c b/apps/app_queue.c index 1b99734e8f..402c910fa6 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -5894,7 +5894,7 @@ static char *complete_queue_remove_member(const char *line, const char *word, in if (!strncasecmp(word, m->membername, wordlen) && ++which > state) { char *tmp; ao2_unlock(q); - tmp = m->membername; + tmp = m->interface; ao2_ref(m, -1); queue_unref(q); return ast_strdup(tmp);