+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.
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 */
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);
}
usleep(2000000);
}
+ ast_config_destroy(cfg);
pthread_exit(NULL);
}