mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user