]> granicus.if.org Git - python/commitdiff
Fix additional leaks.
authorStefan Krah <stefan@bytereef.org>
Sat, 27 Nov 2010 11:44:18 +0000 (11:44 +0000)
committerStefan Krah <stefan@bytereef.org>
Sat, 27 Nov 2010 11:44:18 +0000 (11:44 +0000)
Modules/posixmodule.c

index 028516541a42254fcf4eb357d9614d49a60d685e..be99be86516a816cb63d8e3a7b9a2db504b68568 100644 (file)
@@ -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();