[svn-commits] tilghman: branch 1.6.0 r206809 - in /branches/1.6.0: ./ funcs/func_realtime.c

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


Author: tilghman
Date: Thu Jul 16 11:52:52 2009
New Revision: 206809

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

................
  r206808 | tilghman | 2009-07-16 11:51:05 -0500 (Thu, 16 Jul 2009) | 13 lines
  
  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:
    branches/1.6.0/   (props changed)
    branches/1.6.0/funcs/func_realtime.c

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/funcs/func_realtime.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.0/funcs/func_realtime.c?view=diff&rev=206809&r1=206808&r2=206809
==============================================================================
--- branches/1.6.0/funcs/func_realtime.c (original)
+++ branches/1.6.0/funcs/func_realtime.c Thu Jul 16 11:52:52 2009
@@ -86,6 +86,8 @@
 		ast_str_append(&out, 0, "%s%s%s%s", var->name, args.delim2, var->value, args.delim1);
 	ast_copy_string(buf, out->str, len);
 
+	ast_variables_destroy(head);
+
 	if (chan)
 		ast_autoservice_stop(chan);
 
@@ -223,6 +225,7 @@
 	ast_copy_string(buf, out->str, len);
 
 	ast_destroy_realtime(args.family, args.fieldmatch, args.value, NULL);
+	ast_variables_destroy(head);
 
 	if (chan)
 		ast_autoservice_stop(chan);




More information about the svn-commits mailing list