[asterisk-commits] mmichelson: trunk r120514 - in /trunk: ./ apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 4 17:07:37 CDT 2008
Author: mmichelson
Date: Wed Jun 4 17:07:37 2008
New Revision: 120514
URL: http://svn.digium.com/view/asterisk?view=rev&rev=120514
Log:
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.
........
Modified:
trunk/ (props changed)
trunk/apps/app_queue.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=120514&r1=120513&r2=120514
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Wed Jun 4 17:07:37 2008
@@ -5957,10 +5957,10 @@
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);
}
More information about the asterisk-commits
mailing list