Fix memory leak with PyConfig initialization
This commit is contained in:
@@ -484,6 +484,8 @@ void BPY_python_start(bContext *C, int argc, const char **argv)
|
||||
|
||||
/* Initialize Python (also acquires lock). */
|
||||
status = Py_InitializeFromConfig(&config);
|
||||
PyConfig_Clear(&config);
|
||||
|
||||
pystatus_exit_on_error(status);
|
||||
|
||||
if (!has_python_executable) {
|
||||
|
||||
Reference in New Issue
Block a user