mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	app_confbridge: Plug ref leak of bridge channel with send_events
When send_events is enabled for a user, we were leaking a reference to the bridge channel in confbridge_manager.c:send_message(). This also caused the bridge snapshot to not be destroyed. Change-Id: I87a7ae9175e3cd29f6d6a8750e0ec5427bd98e97
This commit is contained in:
		
				
					committed by
					
						
						Friendly Automation
					
				
			
			
				
	
			
			
			
						parent
						
							68b2a2f1ab
						
					
				
				
					commit
					c7406a5b48
				
			@@ -367,7 +367,7 @@ static void send_message(const char *msg_name, char *conf_name, struct ast_json
 | 
			
		||||
	char *json;
 | 
			
		||||
	int rc = 0;
 | 
			
		||||
	struct ast_frame f;
 | 
			
		||||
	struct ast_bridge_channel *bridge_chan;
 | 
			
		||||
	RAII_VAR(struct ast_bridge_channel *, bridge_chan, NULL, ao2_cleanup);
 | 
			
		||||
 | 
			
		||||
	bridge_chan = ast_channel_get_bridge_channel(chan);
 | 
			
		||||
	if (!bridge_chan) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user