mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PySys_Audit() (GH-28862)
(cherry picked from commit 9883ca498d)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									5f44bb28fd
								
							
						
					
					
						commit
						d57d33c234
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -121,7 +121,7 @@ _PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *fp) | |||
| 
 | ||||
|     if (PySys_Audit("import", "OOOOO", name_unicode, path, | ||||
|                     Py_None, Py_None, Py_None) < 0) { | ||||
|         return NULL; | ||||
|         goto error; | ||||
|     } | ||||
| 
 | ||||
| #ifdef MS_WINDOWS | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)