fix leaking of address sets in network partitions
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
		
							parent
							
								
									23972aa8f7
								
							
						
					
					
						commit
						52a0751055
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1381,6 +1381,8 @@ err_unicast_sockets:
 | 
			
		|||
  (ddsi_plugin.fini_fn) ();
 | 
			
		||||
#ifdef DDSI_INCLUDE_NETWORK_PARTITIONS
 | 
			
		||||
err_network_partition_addrset:
 | 
			
		||||
  for (struct config_networkpartition_listelem *np = config.networkPartitions; np; np = np->next)
 | 
			
		||||
    unref_addrset (np->as);
 | 
			
		||||
#endif
 | 
			
		||||
err_set_ext_address:
 | 
			
		||||
  while (gv.recvips)
 | 
			
		||||
| 
						 | 
				
			
			@ -1614,6 +1616,10 @@ void rtps_term (void)
 | 
			
		|||
    fclose (gv.pcap_fp);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
#ifdef DDSI_INCLUDE_NETWORK_PARTITIONS
 | 
			
		||||
  for (struct config_networkpartition_listelem *np = config.networkPartitions; np; np = np->next)
 | 
			
		||||
    unref_addrset (np->as);
 | 
			
		||||
#endif
 | 
			
		||||
  unref_addrset (gv.as_disc);
 | 
			
		||||
  unref_addrset (gv.as_disc_group);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue