mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
Fix ALSA/OSS leak
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1006,7 +1006,7 @@ int load_module()
|
|||||||
int res;
|
int res;
|
||||||
int x;
|
int x;
|
||||||
int flags;
|
int flags;
|
||||||
struct ast_config *cfg = ast_load(config);
|
struct ast_config *cfg;
|
||||||
struct ast_variable *v;
|
struct ast_variable *v;
|
||||||
res = pipe(cmd);
|
res = pipe(cmd);
|
||||||
res = pipe(sndcmd);
|
res = pipe(sndcmd);
|
||||||
@@ -1039,7 +1039,7 @@ int load_module()
|
|||||||
}
|
}
|
||||||
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
|
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
|
||||||
ast_cli_register(myclis + x);
|
ast_cli_register(myclis + x);
|
||||||
if (cfg) {
|
if ((cfg = ast_load(config)) {
|
||||||
v = ast_variable_browse(cfg, "general");
|
v = ast_variable_browse(cfg, "general");
|
||||||
while(v) {
|
while(v) {
|
||||||
if (!strcasecmp(v->name, "autoanswer"))
|
if (!strcasecmp(v->name, "autoanswer"))
|
||||||
|
@@ -951,7 +951,7 @@ int load_module()
|
|||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
int x;
|
int x;
|
||||||
struct ast_config *cfg = ast_load(config);
|
struct ast_config *cfg;
|
||||||
struct ast_variable *v;
|
struct ast_variable *v;
|
||||||
res = pipe(sndcmd);
|
res = pipe(sndcmd);
|
||||||
if (res) {
|
if (res) {
|
||||||
@@ -975,7 +975,7 @@ int load_module()
|
|||||||
}
|
}
|
||||||
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
|
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
|
||||||
ast_cli_register(myclis + x);
|
ast_cli_register(myclis + x);
|
||||||
if (cfg) {
|
if ((cfg = ast_load(config))) {
|
||||||
v = ast_variable_browse(cfg, "general");
|
v = ast_variable_browse(cfg, "general");
|
||||||
while(v) {
|
while(v) {
|
||||||
if (!strcasecmp(v->name, "autoanswer"))
|
if (!strcasecmp(v->name, "autoanswer"))
|
||||||
|
Reference in New Issue
Block a user