Index: apps/app_rpt.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_rpt.c,v retrieving revision 1.47 diff -u -r1.47 app_rpt.c --- apps/app_rpt.c 3 Nov 2005 18:58:24 -0000 1.47 +++ apps/app_rpt.c 10 Nov 2005 21:23:21 -0000 @@ -5758,6 +5758,7 @@ 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 @@ 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 @@ } usleep(2000000); } + ast_config_destroy(cfg); pthread_exit(NULL); }