mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	only incref when using borrowing functions
This commit is contained in:
		
							parent
							
								
									aed97733df
								
							
						
					
					
						commit
						1138944888
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2132,6 +2132,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) | |||
|                                              GLOBAL_NAME_ERROR_MSG, w); | ||||
|                     break; | ||||
|                 } | ||||
|                 Py_INCREF(x); | ||||
|             } | ||||
|             else { | ||||
|                 /* Slow-path if globals or builtins is not a dict */ | ||||
|  | @ -2147,7 +2148,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) | |||
|                     } | ||||
|                 } | ||||
|             } | ||||
|             Py_INCREF(x); | ||||
|             PUSH(x); | ||||
|             DISPATCH(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson