when closing trace file check for stdout or stderr
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
		
							parent
							
								
									d76a537bb6
								
							
						
					
					
						commit
						5edd55bc64
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2927,7 +2927,7 @@ void config_fini(_In_ struct cfgst *cfgst)
 | 
			
		|||
    assert(config.valid);
 | 
			
		||||
 | 
			
		||||
    free_all_elements(cfgst, cfgst->cfg, root_cfgelems);
 | 
			
		||||
    if ( config.tracingOutputFile ) {
 | 
			
		||||
    if ( config.tracingOutputFile && config.tracingOutputFile != stdout && config.tracingOutputFile != stderr) {
 | 
			
		||||
        fclose(config.tracingOutputFile);
 | 
			
		||||
    }
 | 
			
		||||
    memset(&config, 0, sizeof(config));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue