From 1068c04ce71a9a9f5a9cd417327e8fde21977cf0 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Thu, 10 Nov 2005 22:55:36 +0000 Subject: issue #5706 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7049 f38db490-d61c-443f-a65b-d21fe96a405b --- ChangeLog | 4 ++++ apps/app_rpt.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 99041eaf1..e304d0345 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-11-10 Kevin P. Fleming + + * apps/app_rpt.c: solve a memory leak (config structure was not freed) (issue #5706 + 2005-11-10 Russell Bryant * many files in apps/: Clean up some application descriptions. Make sure all descriptions in changed files are wrapped at 80 characters. diff --git a/apps/app_rpt.c b/apps/app_rpt.c index 8a0e8c575..c8b10e44d 100755 --- a/apps/app_rpt.c +++ b/apps/app_rpt.c @@ -5758,6 +5758,7 @@ pthread_attr_t attr; if (!rpt_vars[i].rxchanname) { ast_log(LOG_WARNING,"Did not specify rxchanname for node %s\n",rpt_vars[i].name); + ast_config_destroy(cfg); pthread_exit(NULL); } /* if is a remote, dont start one for it */ @@ -5775,6 +5776,7 @@ pthread_attr_t attr; if (!rpt_vars[i].ident) { ast_log(LOG_WARNING,"Did not specify ident for node %s\n",rpt_vars[i].name); + ast_config_destroy(cfg); pthread_exit(NULL); } pthread_attr_init(&attr); @@ -5821,6 +5823,7 @@ pthread_attr_t attr; } usleep(2000000); } + ast_config_destroy(cfg); pthread_exit(NULL); } -- cgit v1.2.3