mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Fix malloc debug macros to work properly with h323.
The main problem here was that cstdlib was undefining free thereby causing the proper debug macros to not be used. ast_h323.cxx has been changed to call ast_free instead to avoid the issue. Because using the ast prefix calls are a better choice, ast_free_ptr is the new wrapper for free to pass to functions. Also, a little bit of clean up was done to avoid the debug macros intentionally being redefined. (closes issue #13593) Reported by: pj git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@181133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4079,7 +4079,7 @@ void add_extensions(struct ael_extension *exten)
|
||||
pbx_substitute_variables_helper(NULL, exten->name, realext, sizeof(realext) - 1);
|
||||
if (exten->hints) {
|
||||
if (ast_add_extension2(exten->context, 0 /*no replace*/, realext, PRIORITY_HINT, NULL, exten->cidmatch,
|
||||
exten->hints, NULL, ast_free, registrar)) {
|
||||
exten->hints, NULL, ast_free_ptr, registrar)) {
|
||||
ast_log(LOG_WARNING, "Unable to add step at priority 'hint' of extension '%s'\n",
|
||||
exten->name);
|
||||
}
|
||||
@@ -4159,7 +4159,7 @@ void add_extensions(struct ael_extension *exten)
|
||||
label = 0;
|
||||
|
||||
if (ast_add_extension2(exten->context, 0 /*no replace*/, realext, pr->priority_num, (label?label:NULL), exten->cidmatch,
|
||||
app, strdup(appargs), ast_free, registrar)) {
|
||||
app, strdup(appargs), ast_free_ptr, registrar)) {
|
||||
ast_log(LOG_WARNING, "Unable to add step at priority '%d' of extension '%s'\n", pr->priority_num,
|
||||
exten->name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user