diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-17 21:17:20 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-17 21:17:20 +0000 |
commit | 59ba2416ac841b063f35c512cd2d7b7fcca09c3b (patch) | |
tree | 5aaffac48d2e674845307fb9d4471174aa5867a5 /apps/app_meetme.c | |
parent | 6452f6efbe8bbfea04196940f6e09d192c0b5cdd (diff) |
Merged revisions 165255 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r165255 | mmichelson | 2008-12-17 14:51:38 -0600 (Wed, 17 Dec 2008) | 7 lines
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/trunk@165318 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r-- | apps/app_meetme.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 025ad3561..3ecd0a139 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -1812,7 +1812,7 @@ static int rt_extend_conf(char *confno) char endtime[32]; struct timeval now; struct ast_tm tm; - struct ast_variable *var; + struct ast_variable *var, *orig_var; char bookid[8]; if (!extendby) { @@ -1828,6 +1828,8 @@ static int rt_extend_conf(char *confno) confno, "startTime<= ", currenttime, "endtime>= ", currenttime, NULL); + origvar = var; + /* Identify the specific RealTime conference */ while (var) { if (!strcasecmp(var->name, "bookid")) { @@ -1839,7 +1841,7 @@ static int rt_extend_conf(char *confno) var = var->next; } - ast_variables_destroy(var); + ast_variables_destroy(orig_var); ast_strptime(endtime, DATE_FORMAT, &tm); now = ast_mktime(&tm, NULL); |