[asterisk-commits] file: branch 1.4 r84637 - /branches/1.4/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 4 09:51:58 CDT 2007
Author: file
Date: Thu Oct 4 09:51:57 2007
New Revision: 84637
URL: http://svn.digium.com/view/asterisk?view=rev&rev=84637
Log:
Create a duplicate of the channel's member name as the tab completion stuff will free it.
(closes issue #10884)
Reported by: adamg
Modified:
branches/1.4/apps/app_queue.c
Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=84637&r1=84636&r2=84637
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Thu Oct 4 09:51:57 2007
@@ -4540,7 +4540,7 @@
ast_mutex_unlock(&q->lock);
tmp = m->membername;
ao2_ref(m, -1);
- return tmp;
+ return ast_strdup(tmp);
}
ao2_ref(m, -1);
}
More information about the asterisk-commits
mailing list