git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-11-10 23:22:37 +00:00
parent ff364c3068
commit 54dd7ac9fa
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
2005-11-10 Kevin P. Fleming <kpfleming@digium.com> 2005-11-10 Kevin P. Fleming <kpfleming@digium.com>
* apps/app_queue.c (rqm_exec): correct segfault problem (issue #5705)
(aqm_exec): ditto
* app.c (ast_app_parse_options): don't increment 's' until after checking for NULL (related to issue #5630) * app.c (ast_app_parse_options): don't increment 's' until after checking for NULL (related to issue #5630)
* apps/app_rpt.c: solve a memory leak (config structure was not freed) (issue #5706 * apps/app_rpt.c: solve a memory leak (config structure was not freed) (issue #5706

View File

@@ -2720,7 +2720,7 @@ static int rqm_exec(struct ast_channel *chan, void *data)
AST_STANDARD_APP_ARGS(args, parse); AST_STANDARD_APP_ARGS(args, parse);
if (ast_strlen_zero(args.interface)) { if (ast_strlen_zero(args.interface)) {
ast_copy_string(args.interface, chan->name, sizeof(args.interface)); args.interface = ast_strdupa(chan->name);
temppos = strrchr(args.interface, '-'); temppos = strrchr(args.interface, '-');
if (temppos) if (temppos)
*temppos = '\0'; *temppos = '\0';
@@ -2788,7 +2788,7 @@ static int aqm_exec(struct ast_channel *chan, void *data)
AST_STANDARD_APP_ARGS(args, parse); AST_STANDARD_APP_ARGS(args, parse);
if (ast_strlen_zero(args.interface)) { if (ast_strlen_zero(args.interface)) {
ast_copy_string(args.interface, chan->name, sizeof(args.interface)); args.interface = ast_strdupa(chan->name);
temppos = strrchr(args.interface, '-'); temppos = strrchr(args.interface, '-');
if (temppos) if (temppos)
*temppos = '\0'; *temppos = '\0';