File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1960,8 +1960,6 @@ finalize_interp_delete(PyInterpreterState *interp)
19601960       created GIL, which ensures that Py_Initialize / Py_FinalizeEx can be 
19611961       called multiple times. */ 
19621962
1963-     PyConfig_Clear (& interp -> config );
1964- 
19651963    PyInterpreterState_Delete (interp );
19661964}
19671965
@@ -2507,7 +2505,6 @@ new_interpreter(PyThreadState **tstate_p,
25072505    if  (tstate  !=  NULL ) {
25082506        Py_EndInterpreter (tstate );
25092507    } else  if  (interp  !=  NULL ) {
2510-         PyConfig_Clear (& interp -> config );
25112508        PyInterpreterState_Delete (interp );
25122509    }
25132510    if  (save_tstate  !=  NULL ) {
Original file line number Diff line number Diff line change @@ -963,6 +963,8 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
963963
964964    _PyObject_FiniState (interp );
965965
966+     PyConfig_Clear (& interp -> config );
967+ 
966968    free_interpreter (interp );
967969}
968970
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments