File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -151,20 +151,20 @@ atexit_callfuncs(struct atexit_state *state)
151151        }
152152
153153        // bpo-46025: Increment the refcount of cb->func as the call itself may unregister it 
154-         PyObject  * the_func  =  Py_NewRef (cb -> func );
155-         PyObject  * the_args  =  cb -> args ;
156-         PyObject  * the_kwargs  =  cb -> kwargs ;
154+         PyObject  * func  =  Py_NewRef (cb -> func );
155+         PyObject  * args  =  cb -> args ;
156+         PyObject  * kwargs  =  cb -> kwargs ;
157157        // Unlock for re-entrancy problems 
158158        _PyAtExit_UNLOCK (state );
159-         PyObject  * res  =  PyObject_Call (the_func ,  the_args ,  the_kwargs );
159+         PyObject  * res  =  PyObject_Call (func ,  args ,  kwargs );
160160        if  (res  ==  NULL ) {
161161            PyErr_FormatUnraisable (
162162                "Exception ignored in atexit callback %R" , the_func );
163163        }
164164        else  {
165165            Py_DECREF (res );
166166        }
167-         Py_DECREF (the_func );
167+         Py_DECREF (func );
168168        _PyAtExit_LOCK (state );
169169    }
170170
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments