mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-31095: fix potential crash during GC (GH-2974)
This commit is contained in:
		
							parent
							
								
									bf9075a0c5
								
							
						
					
					
						commit
						a6296d34a4
					
				
					 14 changed files with 60 additions and 13 deletions
				
			
		|  | @ -633,6 +633,8 @@ def visitModule(self, mod): | |||
| static void | ||||
| ast_dealloc(AST_object *self) | ||||
| { | ||||
|     /* bpo-31095: UnTrack is needed before calling any callbacks */ | ||||
|     PyObject_GC_UnTrack(self); | ||||
|     Py_CLEAR(self->dict); | ||||
|     Py_TYPE(self)->tp_free(self); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 INADA Naoki
						INADA Naoki