Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7ef4de

Browse files
committed
Merged revisions 88337 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r88337 | brett.cannon | 2011-02-04 12:24:02 -0800 (Fri, 04 Feb 2011) | 5 lines There was a possibility that the initialization of _sqlite, when it failed, would lead to a decref of a NULL. Fixes issue #11110. ........
1 parent 8e0ef58 commit f7ef4de

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Core and Builtins
3737
Library
3838
-------
3939

40+
- Issue #11110: Fix _sqlite to not deref a NULL when module creation fails.
41+
4042
- Issue #11089: Fix performance issue limiting the use of ConfigParser()
4143
with large config files.
4244

Modules/_sqlite/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
329329
(pysqlite_statement_setup_types() < 0) ||
330330
(pysqlite_prepare_protocol_setup_types() < 0)
331331
) {
332-
Py_DECREF(module);
332+
Py_XDECREF(module);
333333
return NULL;
334334
}
335335

0 commit comments

Comments
 (0)