aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-04 14:51:57 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-04 14:51:57 +0000
commit7b4b1a083c7590957dbf12d890ce8b464ac8ab3c (patch)
treed858e9094e35ffac1226dae15146f4214a996cf5 /apps/app_queue.c
parentb72eebebe34a37d65846056c6ca06e529c3aa055 (diff)
Create a duplicate of the channel's member name as the tab completion stuff will free it.
(closes issue #10884) Reported by: adamg git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@84637 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index eb5aa8fd2..a7de4ba98 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4540,7 +4540,7 @@ static char *complete_queue_remove_member(const char *line, const char *word, in
ast_mutex_unlock(&q->lock);
tmp = m->membername;
ao2_ref(m, -1);
- return tmp;
+ return ast_strdup(tmp);
}
ao2_ref(m, -1);
}