don't leak the channel list after all
unlike the actual configuration data, it's not kept in global variables,
so it shows up in memcheck.
amends 1de3ecd88.
			
			
This commit is contained in:
		
							parent
							
								
									09d11245cd
								
							
						
					
					
						commit
						85688d1c1a
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -973,7 +973,10 @@ sync_chans( main_vars_t *mvars, int ent )
 | 
				
			||||||
			chans_done++;
 | 
								chans_done++;
 | 
				
			||||||
			stats();
 | 
								stats();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} while ((mvars->chanptr = mvars->chanptr->next));
 | 
							chan_ent_t *nchan = mvars->chanptr->next;
 | 
				
			||||||
 | 
							free( mvars->chanptr );
 | 
				
			||||||
 | 
							mvars->chanptr = nchan;
 | 
				
			||||||
 | 
						} while (mvars->chanptr);
 | 
				
			||||||
	for (t = 0; t < N_DRIVERS; t++)
 | 
						for (t = 0; t < N_DRIVERS; t++)
 | 
				
			||||||
		drivers[t]->cleanup();
 | 
							drivers[t]->cleanup();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue