mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue #27909: Fix INCREF for possible NULL value
This commit is contained in:
		
							parent
							
								
									74eda76085
								
							
						
					
					
						commit
						f0afe77c52
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1056,7 +1056,7 @@ _imp_create_builtin(PyObject *module, PyObject *spec) | |||
|     mod = _PyImport_FindExtensionObject(name, name); | ||||
|     if (mod || PyErr_Occurred()) { | ||||
|         Py_DECREF(name); | ||||
|         Py_INCREF(mod); | ||||
|         Py_XINCREF(mod); | ||||
|         return mod; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger