diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index a200dc663f..8019c5ca4c 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1000,7 +1000,7 @@ static char *handle_cli_dialplan_add_extension(struct ast_cli_entry *e, int cmd, if (!app_data) app_data=""; if (ast_add_extension(a->argv[5], a->argc == 7 ? 1 : 0, exten, iprior, NULL, cidmatch, app, - (void *)strdup(app_data), free, registrar)) { + (void *)strdup(app_data), ast_free, registrar)) { switch (errno) { case ENOMEM: ast_cli(a->fd, "Out of free memory\n");