Skip to content
Snippets Groups Projects
Commit 2cf87c7c authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix ALSA/OSS leak

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent ac16b573
No related branches found
No related tags found
No related merge requests found
......@@ -1006,7 +1006,7 @@ int load_module()
int res;
int x;
int flags;
struct ast_config *cfg = ast_load(config);
struct ast_config *cfg;
struct ast_variable *v;
res = pipe(cmd);
res = pipe(sndcmd);
......@@ -1039,7 +1039,7 @@ int load_module()
}
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
ast_cli_register(myclis + x);
if (cfg) {
if ((cfg = ast_load(config)) {
v = ast_variable_browse(cfg, "general");
while(v) {
if (!strcasecmp(v->name, "autoanswer"))
......
......@@ -951,7 +951,7 @@ int load_module()
{
int res;
int x;
struct ast_config *cfg = ast_load(config);
struct ast_config *cfg;
struct ast_variable *v;
res = pipe(sndcmd);
if (res) {
......@@ -975,7 +975,7 @@ int load_module()
}
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
ast_cli_register(myclis + x);
if (cfg) {
if ((cfg = ast_load(config))) {
v = ast_variable_browse(cfg, "general");
while(v) {
if (!strcasecmp(v->name, "autoanswer"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment