mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	
							parent
							
								
									a71a333722
								
							
						
					
					
						commit
						ef80645a71
					
				
					 1 changed files with 9 additions and 7 deletions
				
			
		|  | @ -3809,14 +3809,16 @@ public class Context extends IDisposable | |||
|         m_intSort = null; | ||||
|         m_realSort = null; | ||||
| 
 | ||||
|         if (m_refCount.get() == 0 && m_ctx != 0) { | ||||
|             try { | ||||
|                 Native.delContext(m_ctx); | ||||
|             } catch (Z3Exception e) { | ||||
|                 // OK? | ||||
|                 System.out.println("Context deletion failed; memory leak possible."); | ||||
|         synchronized (creation_lock) { | ||||
|             if (m_refCount.get() == 0 && m_ctx != 0) { | ||||
|                 try { | ||||
|                     Native.delContext(m_ctx); | ||||
|                 } catch (Z3Exception e) { | ||||
|                     // OK? | ||||
|                     System.out.println("Context deletion failed; memory leak possible."); | ||||
|                 } | ||||
|                 m_ctx = 0; | ||||
|             } | ||||
|             m_ctx = 0; | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue