git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming 2005-11-10 22:55:36 +00:00
parent 642be05f09
commit c3b6ac6004
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-11-10 Kevin P. Fleming <kpfleming@digium.com>
* apps/app_rpt.c: solve a memory leak (config structure was not freed) (issue #5706
2005-11-10 Russell Bryant <russell@digium.com>
* many files in apps/: Clean up some application descriptions. Make sure all descriptions in changed files are wrapped at 80 characters.

View File

@ -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);
}