summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 4dfaded..e789eb9 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -524,6 +524,10 @@ _PyRuntimeState_Fini(_PyRuntimeState *runtime)
}
#undef FREE_LOCK
+ if (runtime->sys_path_0 != NULL) {
+ PyMem_RawFree(runtime->sys_path_0);
+ runtime->sys_path_0 = NULL;
+ }
PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc);
}