]> granicus.if.org Git - python/commit
Fix potential NULL pointer dereference in _imp_create_builtin
authorChristian Heimes <christian@python.org>
Thu, 8 Sep 2016 22:25:03 +0000 (00:25 +0200)
committerChristian Heimes <christian@python.org>
Thu, 8 Sep 2016 22:25:03 +0000 (00:25 +0200)
commita78b627e2b8ee464ecba3788725872d63f8a6b34
treec64467c1e77dd8a2419b7b207523ff5f6b3df176
parent4f29e75289592991efcc65a96a2a4a995417b76e
Fix potential NULL pointer dereference in _imp_create_builtin
PyModule_GetDef() can return NULL. Let's check the return value properly
like in the other five cases.

CID 1299590
Python/import.c