mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	[WIP] Leaks (#7691)
* Initial plan for issue * Initial analysis of memory leak issue Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix memory leak in lar_solver by adding var_register cleanup Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Complete memory leak fix: add dealloc(m_imp) to lar_solver destructor Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Delete leak.smt2 * Update lar_solver.cpp --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									a3c8bbb461
								
							
						
					
					
						commit
						218379aaca
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -231,6 +231,7 @@ namespace lp {
 | 
				
			||||||
    lar_solver::~lar_solver() {
 | 
					    lar_solver::~lar_solver() {
 | 
				
			||||||
        for (auto t : m_imp->m_terms)
 | 
					        for (auto t : m_imp->m_terms)
 | 
				
			||||||
            delete t;
 | 
					            delete t;
 | 
				
			||||||
 | 
					        dealloc(m_imp);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    void lar_solver::clear_columns_with_changed_bounds() { m_imp->m_columns_with_changed_bounds.reset(); }
 | 
					    void lar_solver::clear_columns_with_changed_bounds() { m_imp->m_columns_with_changed_bounds.reset(); }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue