New submission from Erlend Egeberg Aasland <erlend.aasl...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40737>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to