diff --git a/apps/app_queue.c b/apps/app_queue.c index fe9be2c143133479545b63e2c397260336255ccf..bbeb43ef0dbeb5ccae99f656eb393e80833dae9e 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -5957,7 +5957,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);