mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Bridge system: Fix memory leaks and double frees on impart failure.
You cannot reference the passed in features struct after calling ast_bridge_impart(). Even if the call fails. Change-Id: I902b88ba0d5d39520e670fb635078a367268ea21
This commit is contained in:
		| @@ -1103,7 +1103,6 @@ static int bridge_exec(struct ast_channel *chan, const char *data) | ||||
| 		xfer_cfg ? xfer_cfg->xfersound : NULL); | ||||
| 	ao2_cleanup(xfer_cfg); | ||||
| 	if (bridge_add_failed) { | ||||
| 		ast_bridge_features_destroy(peer_features); | ||||
| 		ast_bridge_features_cleanup(&chan_features); | ||||
| 		ast_bridge_destroy(bridge, 0); | ||||
| 		goto done; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user