[svn-commits] tilghman: trunk r206808 - in /trunk: ./ funcs/func_realtime.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 16 11:51:09 CDT 2009


Author: tilghman
Date: Thu Jul 16 11:51:05 2009
New Revision: 206808

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=206808
Log:
Merged revisions 206807 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r206807 | tilghman | 2009-07-16 11:27:35 -0500 (Thu, 16 Jul 2009) | 6 lines
  
  Fix a memory leak.
  (closes issue #15517)
   Reported by: adomjan
   Patches: 
         func_realtime.c-ast_variable_destroy.diff uploaded by adomjan (license 487)
........

Modified:
    trunk/   (props changed)
    trunk/funcs/func_realtime.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/funcs/func_realtime.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/funcs/func_realtime.c?view=diff&rev=206808&r1=206807&r2=206808
==============================================================================
--- trunk/funcs/func_realtime.c (original)
+++ trunk/funcs/func_realtime.c Thu Jul 16 11:51:05 2009
@@ -190,6 +190,8 @@
 		ast_str_append(&out, 0, "%s%s%s%s", var->name, args.delim2, var->value, args.delim1);
 	ast_copy_string(buf, ast_str_buffer(out), len);
 
+	ast_variables_destroy(head);
+
 	if (chan)
 		ast_autoservice_stop(chan);
 
@@ -403,6 +405,7 @@
 	ast_copy_string(buf, ast_str_buffer(out), len);
 
 	ast_destroy_realtime(args.family, args.fieldmatch, args.value, SENTINEL);
+	ast_variables_destroy(head);
 
 	if (chan)
 		ast_autoservice_stop(chan);




More information about the svn-commits mailing list