[New-bugs-announce] [issue40737] Handle PyModule_AddObject() error correctly in sqlite3

Erlend Egeberg Aasland report at bugs.python.org
Fri May 22 18:16:00 EDT 2020


New submission from Erlend Egeberg Aasland <erlend.aasland at innova.no>:

According to the documentation, PyModule_AddObject() only decrements the reference count of value on success. The calling code must PyDECREF() manually on error.

Fixed by attached patch.

----------
components: Library (Lib)
files: 0001-Use-PyModule_AddObject-correctly-in-sqlite3.patch
keywords: patch
messages: 369658
nosy: erlendaasland
priority: normal
severity: normal
status: open
title: Handle PyModule_AddObject() error correctly in sqlite3
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49183/0001-Use-PyModule_AddObject-correctly-in-sqlite3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40737>
_______________________________________


More information about the New-bugs-announce mailing list