mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +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);
 | 
					                                             GLOBAL_NAME_ERROR_MSG, w);
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					                Py_INCREF(x);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
                /* Slow-path if globals or builtins is not a dict */
 | 
					                /* 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);
 | 
					            PUSH(x);
 | 
				
			||||||
            DISPATCH();
 | 
					            DISPATCH();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue