mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	gh-117139: Fix a few wrong steals in bytecodes.c (GH-121127)
Fix a few wrong steals in bytecodes.c
This commit is contained in:
		
							parent
							
								
									2894aa14f2
								
							
						
					
					
						commit
						e6543daf12
					
				
					 4 changed files with 33 additions and 33 deletions
				
			
		| 
						 | 
				
			
			@ -1619,7 +1619,7 @@ initialize_locals(PyThreadState *tstate, PyFunctionObject *func,
 | 
			
		|||
                goto kw_fail;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (PyDict_SetItem(kwdict, keyword, PyStackRef_AsPyObjectSteal(value_stackref)) == -1) {
 | 
			
		||||
            if (PyDict_SetItem(kwdict, keyword, PyStackRef_AsPyObjectBorrow(value_stackref)) == -1) {
 | 
			
		||||
                goto kw_fail;
 | 
			
		||||
            }
 | 
			
		||||
            PyStackRef_CLOSE(value_stackref);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue