summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2002-10-04 00:09:38 +0000
committerMark Hammond <mhammond@skippinet.com.au>2002-10-04 00:09:38 +0000
commitcaa776a4c7d2577b0f7c733c44bc1d18ed82b66d (patch)
tree8fda796e4a1ad86b684af32528c5c742eb8efcba /Python/errors.c
parent6c3d831fecfaf9e56662be565d4a2f024870e4a2 (diff)
downloadcpython-caa776a4c7d2577b0f7c733c44bc1d18ed82b66d.tar.gz
Fix errors to pep277 checkin identified by Neal Norwitz.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/errors.c b/Python/errors.c
index ccc2ae37bd..9a2597b0ce 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -334,7 +334,7 @@ PyErr_SetFromErrnoWithFilename(PyObject *exc, char *filename)
{
PyObject *name = filename ? PyString_FromString(filename) : NULL;
PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name);
- Py_DECREF(name);
+ Py_XDECREF(name);
return result;
}
@@ -444,7 +444,7 @@ PyObject *PyErr_SetFromWindowsErrWithFilename(
PyObject *result = PyErr_SetExcFromWindowsErrWithFilenameObject(
PyExc_WindowsError,
ierr, name);
- Py_XDECREF(result);
+ Py_XDECREF(name);
return result;
}
@@ -459,7 +459,7 @@ PyObject *PyErr_SetFromWindowsErrWithUnicodeFilename(
PyObject *result = PyErr_SetExcFromWindowsErrWithFilenameObject(
PyExc_WindowsError,
ierr, name);
- Py_XDECREF(result);
+ Py_XDECREF(name);
return result;
}
#endif /* Py_WIN_WIDE_FILENAMES */