-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
This code produces a warning:
Lines 160 to 176 in a34e4db
| PyObject *exc; | |
| if (res == NULL) { | |
| exc = PyErr_GetRaisedException(); | |
| } | |
| if (self->finalizing) { | |
| PyObject *r = fileio_dealloc_warn(self, (PyObject *) self); | |
| if (r) { | |
| Py_DECREF(r); | |
| } | |
| else { | |
| PyErr_Clear(); | |
| } | |
| } | |
| rc = internal_close(self); | |
| if (res == NULL) { | |
| _PyErr_ChainExceptions1(exc); | |
| } |
Link: https://buildbot.python.org/all/#/builders/1061/builds/695/steps/7/logs/warnings__145_
I think that it is enough to add = NULL; to PyObject *exc;.
Linked PRs
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error