diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-17 20:51:38 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-17 20:51:38 +0000 |
commit | f3428dead2d1fd1b9cd475c3f10d97e5015c87dc (patch) | |
tree | b30293e93473d2e15972bbcdc8a76f23ac82d45e /apps/app_meetme.c | |
parent | f23ceae472166f900873b9033b9dae684cba25c4 (diff) |
Fix some memory leaks found while looking at how realtime
configs are handled.
Also cleaned up some coding guidelines violations in app_realtime.c,
mostly related to spacing
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@165255 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r-- | apps/app_meetme.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 8838e3549..f526279ef 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -2477,7 +2477,7 @@ bailoutandtrynormal: static struct ast_conference *find_conf_realtime(struct ast_channel *chan, char *confno, int make, int dynamic, char *dynamic_pin, size_t pin_buf_len, int refcount, struct ast_flags *confflags) { - struct ast_variable *var; + struct ast_variable *var, *save; struct ast_conference *cnf; /* Check first in the conference list */ @@ -2499,6 +2499,7 @@ static struct ast_conference *find_conf_realtime(struct ast_channel *chan, char if (!var) return NULL; + save = var; while (var) { if (!strcasecmp(var->name, "pin")) { pin = ast_strdupa(var->value); @@ -2507,7 +2508,7 @@ static struct ast_conference *find_conf_realtime(struct ast_channel *chan, char } var = var->next; } - ast_variables_destroy(var); + ast_variables_destroy(save); cnf = build_conf(confno, pin ? pin : "", pinadmin ? pinadmin : "", make, dynamic, refcount); } |