Merged revisions 120514 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

................
r120514 | mmichelson | 2008-06-04 17:07:37 -0500 (Wed, 04 Jun 2008) | 14 lines

Merged revisions 120513 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120513 | mmichelson | 2008-06-04 17:05:33 -0500 (Wed, 04 Jun 2008) | 6 lines

Make sure that the string we set will survive the unref of
the queue member.

Thanks to Russell, who pointed this out.


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@120515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Mark Michelson 17 years ago
parent 816d355d89
commit a067ee471a

@ -5894,10 +5894,10 @@ 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->interface;
tmp = ast_strdup(m->interface);
ao2_ref(m, -1);
queue_unref(q);
return ast_strdup(tmp);
return tmp;
}
ao2_ref(m, -1);
}

Loading…
Cancel
Save