mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
Make the MALLOC_DEBUG output for free() useful again. After changing calls to
free to be ast_free, astmm said all calls to free were coming from utils.h git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1970,7 +1970,7 @@ static int load_module(void)
|
||||
if (!con)
|
||||
ast_log(LOG_ERROR, "Dial virtual context 'app_dial_gosub_virtual_context' does not exist and unable to create\n");
|
||||
else
|
||||
ast_add_extension2(con, 1, "s", 1, NULL, NULL, "KeepAlive", ast_strdup(""), ast_free, "app_dial");
|
||||
ast_add_extension2(con, 1, "s", 1, NULL, NULL, "KeepAlive", ast_strdup(""), ast_free_ptr, "app_dial");
|
||||
|
||||
res = ast_register_application(app, dial_exec, synopsis, descrip);
|
||||
res |= ast_register_application(rapp, retrydial_exec, rsynopsis, rdescrip);
|
||||
|
@@ -4715,7 +4715,7 @@ static int sla_build_trunk(struct ast_config *cfg, const char *cat)
|
||||
return -1;
|
||||
}
|
||||
if (ast_add_extension2(context, 0 /* don't replace */, "s", 1,
|
||||
NULL, NULL, slatrunk_app, ast_strdup(trunk->name), ast_free, sla_registrar)) {
|
||||
NULL, NULL, slatrunk_app, ast_strdup(trunk->name), ast_free_ptr, sla_registrar)) {
|
||||
ast_log(LOG_ERROR, "Failed to automatically create extension "
|
||||
"for trunk '%s'!\n", trunk->name);
|
||||
destroy_trunk(trunk);
|
||||
@@ -4854,7 +4854,7 @@ static int sla_build_station(struct ast_config *cfg, const char *cat)
|
||||
/* The extension for when the handset goes off-hook.
|
||||
* exten => station1,1,SLAStation(station1) */
|
||||
if (ast_add_extension2(context, 0 /* don't replace */, station->name, 1,
|
||||
NULL, NULL, slastation_app, ast_strdup(station->name), ast_free, sla_registrar)) {
|
||||
NULL, NULL, slastation_app, ast_strdup(station->name), ast_free_ptr, sla_registrar)) {
|
||||
ast_log(LOG_ERROR, "Failed to automatically create extension "
|
||||
"for trunk '%s'!\n", station->name);
|
||||
destroy_station(station);
|
||||
@@ -4869,7 +4869,7 @@ static int sla_build_station(struct ast_config *cfg, const char *cat)
|
||||
/* Extension for this line button
|
||||
* exten => station1_line1,1,SLAStation(station1_line1) */
|
||||
if (ast_add_extension2(context, 0 /* don't replace */, exten, 1,
|
||||
NULL, NULL, slastation_app, ast_strdup(exten), ast_free, sla_registrar)) {
|
||||
NULL, NULL, slastation_app, ast_strdup(exten), ast_free_ptr, sla_registrar)) {
|
||||
ast_log(LOG_ERROR, "Failed to automatically create extension "
|
||||
"for trunk '%s'!\n", station->name);
|
||||
destroy_station(station);
|
||||
|
@@ -4979,7 +4979,7 @@ static int load_module(void)
|
||||
if (!con)
|
||||
ast_log(LOG_ERROR, "Queue virtual context 'app_queue_gosub_virtual_context' does not exist and unable to create\n");
|
||||
else
|
||||
ast_add_extension2(con, 1, "s", 1, NULL, NULL, "KeepAlive", ast_strdup(""), ast_free, "app_queue");
|
||||
ast_add_extension2(con, 1, "s", 1, NULL, NULL, "KeepAlive", ast_strdup(""), ast_free_ptr, "app_queue");
|
||||
|
||||
if (queue_persistent_members)
|
||||
reload_queue_members();
|
||||
|
Reference in New Issue
Block a user