From: Joshua Colp Date: Thu, 4 Oct 2007 14:51:57 +0000 (+0000) Subject: Create a duplicate of the channel's member name as the tab completion stuff will... X-Git-Tag: 1.4.12.1~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03a7b069591abf956d072afa9f67f5993efd9309;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@84637 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index eb5aa8fd29..a7de4ba98a 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); }