提交 22942e94 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-6515 --resolve

上级 df733a7f
...@@ -1319,6 +1319,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess ...@@ -1319,6 +1319,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
if (strchr(terminators, buf[i]) && terminator != NULL) { if (strchr(terminators, buf[i]) && terminator != NULL) {
*terminator = buf[i]; *terminator = buf[i];
buf[i] = '\0'; buf[i] = '\0';
switch_safe_free(abuf);
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
} }
...@@ -1382,6 +1383,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess ...@@ -1382,6 +1383,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
if (!zstr(terminators) && strchr(terminators, dtmf.digit) && terminator != NULL) { if (!zstr(terminators) && strchr(terminators, dtmf.digit) && terminator != NULL) {
*terminator = dtmf.digit; *terminator = dtmf.digit;
switch_safe_free(abuf);
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
...@@ -1390,6 +1392,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess ...@@ -1390,6 +1392,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
buf[x] = '\0'; buf[x] = '\0';
if (x >= buflen || x >= maxdigits) { if (x >= buflen || x >= maxdigits) {
switch_safe_free(abuf);
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论