mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	Fix memory leak in bv2fpa_converter
This commit is contained in:
		
							parent
							
								
									2308d8af09
								
							
						
					
					
						commit
						4faaff5b76
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -474,6 +474,8 @@ void bv2fpa_converter::convert_uf2bvuf(model_core * mc, model_core * target_mode
 | 
			
		|||
            func_interp *fi = convert_func_interp(mc, f, f_uf);
 | 
			
		||||
            if (fi->num_entries() > 0 || fi->get_else() != nullptr)
 | 
			
		||||
                target_model->register_decl(f, fi);
 | 
			
		||||
            else
 | 
			
		||||
                dealloc(fi);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue