From 6a74f15a0d840f00e62c71c36ea6c169a2b4dab1 Mon Sep 17 00:00:00 2001 From: Nice Zombies Date: Thu, 25 Apr 2024 01:40:20 +0200 Subject: [PATCH] Update Modules/posixmodule.c Co-authored-by: Eryk Sun --- Modules/posixmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 49dd7b4d6bea7b..c9d67ccbb8c908 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -5504,8 +5504,8 @@ os__path_splitroot_ex_impl(PyObject *module, PyObject *path) exit: PyMem_Free(buffer); Py_XDECREF(drv); - Py_DECREF(root); - Py_DECREF(tail); + Py_XDECREF(root); + Py_XDECREF(tail); return result; }