mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	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) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@206809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -86,6 +86,8 @@ static int function_realtime_read(struct ast_channel *chan, const char *cmd, cha
 | 
			
		||||
		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 @@ static int function_realtime_readdestroy(struct ast_channel *chan, const char *c
 | 
			
		||||
	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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user