]> granicus.if.org Git - python/commit
[3.6] _pickle: Fix whichmodule() (GH-3358) (#3361)
authorChristian Heimes <christian@python.org>
Wed, 6 Sep 2017 04:43:19 +0000 (21:43 -0700)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2017 04:43:19 +0000 (21:43 -0700)
commitc3c3062169fad11e0e74aa85ff1f3d69c0170d42
tree1cdd8556e3f30fc06b8f303697b69d76f354e2c7
parentff125e1aa9ee4eb928de79320a0e7c1b0c0f58f4
[3.6] _pickle: Fix whichmodule() (GH-3358) (#3361)

_PyUnicode_FromId() can return NULL: replace Py_INCREF() with
Py_XINCREF().

Fix coverity report: CID 1417269.
(cherry picked from commit af46eb8)
Modules/_pickle.c