aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 22:57:17 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 22:57:17 +0000
commit0bb7f0ce940666e28cb30a8e0c8b22f4711e25d9 (patch)
tree3089c4dfcc98bd2d830466643da0f5f1a65c24f2 /funcs
parentbfafc90d85624d08d064b68971ff11c96795521f (diff)
Add timezone to the possible fields in a timespec.
(closes issue #14028) Reported by: mostyn Patches: timezone-v2.patch uploaded by mostyn (license 398) (with additional code guideline fixes and a memory leak fix by me - license 14) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@164976 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_logic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/funcs/func_logic.c b/funcs/func_logic.c
index ef644f43f..e583d5439 100644
--- a/funcs/func_logic.c
+++ b/funcs/func_logic.c
@@ -148,6 +148,7 @@ static int iftime(struct ast_channel *chan, const char *cmd, char *data, char *b
if (!ast_build_timing(&timing, expr)) {
ast_log(LOG_WARNING, "Invalid Time Spec.\n");
+ ast_destroy_timing(&timing);
return -1;
}
@@ -157,6 +158,7 @@ static int iftime(struct ast_channel *chan, const char *cmd, char *data, char *b
iffalse = ast_strip_quoted(iffalse, "\"", "\"");
ast_copy_string(buf, ast_check_timing(&timing) ? iftrue : iffalse, len);
+ ast_destroy_timing(&timing);
return 0;
}