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
This commit is contained in:
Joshua Colp
2007-10-04 14:51:57 +00:00
parent 1e9edf1338
commit 03a7b06959

View File

@@ -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);
}