]> granicus.if.org Git - python/commit
_pickle: Fix whichmodule() (#3358)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 5 Sep 2017 21:30:16 +0000 (23:30 +0200)
committerChristian Heimes <christian@python.org>
Tue, 5 Sep 2017 21:30:16 +0000 (14:30 -0700)
commitaf46eb8d5f23c6f4e69a6a1f579fac8c2250b7c2
tree2c658c1719de444619c52733f0fac6c311036d9a
parent564a2c68add64ebf2e558a54f5697513b19293cb
_pickle: Fix whichmodule() (#3358)

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

Fix coverity report: CID 1417269.
Modules/_pickle.c