[asterisk-commits] tilghman: branch 1.4 r206807 - /branches/1.4/funcs/func_realtime.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 16 11:27:39 CDT 2009
Author: tilghman
Date: Thu Jul 16 11:27:35 2009
New Revision: 206807
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=206807
Log:
Fix a memory leak.
(closes issue #15517)
Reported by: adomjan
Patches:
func_realtime.c-ast_variable_destroy.diff uploaded by adomjan (license 487)
Modified:
branches/1.4/funcs/func_realtime.c
Modified: branches/1.4/funcs/func_realtime.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/funcs/func_realtime.c?view=diff&rev=206807&r1=206806&r2=206807
==============================================================================
--- branches/1.4/funcs/func_realtime.c (original)
+++ branches/1.4/funcs/func_realtime.c Thu Jul 16 11:27:35 2009
@@ -93,6 +93,8 @@
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)
More information about the asterisk-commits
mailing list