summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 0285165..be99be8 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2263,6 +2263,8 @@ win32_link(PyObject *self, PyObject *args)
rslt = CreateHardLink(dst, src, NULL);
Py_END_ALLOW_THREADS
+ Py_DECREF(osrc);
+ Py_DECREF(odst);
if (rslt == 0)
return posix_error();