[asterisk-commits] russell: trunk r38329 - in /trunk: ./
channels/chan_iax2.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Jul 26 21:28:10 MST 2006
Author: russell
Date: Wed Jul 26 23:28:09 2006
New Revision: 38329
URL: http://svn.digium.com/view/asterisk?rev=38329&view=rev
Log:
Merged revisions 38328 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r38328 | russell | 2006-07-27 00:25:41 -0400 (Thu, 27 Jul 2006) | 4 lines
Fix crash when using the "regexten" option with MALLOC_DEBUG enabled. This was
not reported in the bug tracker but the same bug has been demonstrated in other
places in the code.
........
Modified:
trunk/ (props changed)
trunk/channels/chan_iax2.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?rev=38329&r1=38328&r2=38329&view=diff
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Wed Jul 26 23:28:09 2006
@@ -702,6 +702,15 @@
static void *iax2_process_thread(void *data);
+#ifdef __AST_DEBUG_MALLOC
+static void FREE(void *ptr)
+{
+ free(ptr);
+}
+#else
+#define FREE free
+#endif
+
static void signal_condition(ast_mutex_t *lock, ast_cond_t *cond)
{
ast_mutex_lock(lock);
@@ -5441,7 +5450,7 @@
if (onoff) {
if (!ast_exists_extension(NULL, regcontext, ext, 1, NULL))
ast_add_extension(regcontext, 1, ext, 1, NULL, NULL,
- "Noop", ast_strdup(peer->name), free, "IAX2");
+ "Noop", ast_strdup(peer->name), FREE, "IAX2");
} else
ast_context_remove_extension(regcontext, ext, 1, NULL);
}
More information about the asterisk-commits
mailing list