[asterisk-commits] [svn-commits] trunk r17824 -
/trunk/pbx/pbx_config.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Apr 6 07:02:21 MST 2006
Author: rizzo
Date: Thu Apr 6 09:02:19 2006
New Revision: 17824
URL: http://svn.digium.com/view/asterisk?rev=17824&view=rev
Log:
use FREE instead of free as pointer to the destructor function.
This way the MALLOC_DEBUG code will always get the correct argument.
(bug introduced in SVN15818)
Modified:
trunk/pbx/pbx_config.c
Modified: trunk/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_config.c?rev=17824&r1=17823&r2=17824&view=diff
==============================================================================
--- trunk/pbx/pbx_config.c (original)
+++ trunk/pbx/pbx_config.c Thu Apr 6 09:02:19 2006
@@ -1468,7 +1468,7 @@
if (!strcmp(realext, "_."))
ast_log(LOG_WARNING, "The use of '_.' for an extension is strongly discouraged and can have unexpected behavior. Please use '_X.' instead at line %d\n", v->lineno);
}
- if (ast_add_extension2(con, 0, realext, ipri, label, cidmatch, appl, strdup(data), free, registrar)) {
+ if (ast_add_extension2(con, 0, realext, ipri, label, cidmatch, appl, strdup(data), FREE, registrar)) {
ast_log(LOG_WARNING, "Unable to register extension at line %d\n", v->lineno);
}
}
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits
More information about the asterisk-commits
mailing list