diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-16 16:27:35 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-16 16:27:35 +0000 |
commit | f6fce41ffcf0c6a93d97208f2a9a7c3fd3575b50 (patch) | |
tree | 43fe3547fdd766d3d8faa7c3dc4940de4690f240 /funcs | |
parent | b9316e52b0f309ec54e346fde31ca4765fb130f3 (diff) |
Fix a memory leak.
(closes issue #15517)
Reported by: adomjan
Patches:
func_realtime.c-ast_variable_destroy.diff uploaded by adomjan (license 487)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@206807 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_realtime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/funcs/func_realtime.c b/funcs/func_realtime.c index 6941b224e..ce64cba4e 100644 --- a/funcs/func_realtime.c +++ b/funcs/func_realtime.c @@ -93,6 +93,8 @@ static int function_realtime_read(struct ast_channel *chan, char *cmd, char *dat ast_build_string(&results, &resultslen, "%s%s%s%s", var->name, args.delim2, var->value, args.delim1); ast_copy_string(buf, result_begin, len); + ast_variables_destroy(head); + ast_module_user_remove(u); if (chan) |