diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-01-21 13:50:13 -0600 |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-01-21 13:50:13 -0600 |
commit | ff1769802fc3ac342e45d4967eeece028184fe6c (patch) | |
tree | fd08ccf458c45f70ccb09547d28826a7071c73b3 /Python/importdl.c | |
parent | 77772c41204d33ca7ccb96908d2275a1d2711aa6 (diff) | |
parent | e0833fb5e338ab5d63f7ec2d15bdb65b3dc99e6d (diff) | |
download | cpython-ff1769802fc3ac342e45d4967eeece028184fe6c.tar.gz |
Issue #20301: Merge with 3.3
Diffstat (limited to 'Python/importdl.c')
-rw-r--r-- | Python/importdl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/importdl.c b/Python/importdl.c index 0ea954cae0..b60f1c75fb 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -77,6 +77,8 @@ _PyImport_LoadDynamicModule(PyObject *name, PyObject *path, FILE *fp) PyObject *msg = PyUnicode_FromFormat("dynamic module does not define " "init function (PyInit_%s)", shortname); + if (msg == NULL) + goto error; PyErr_SetImportError(msg, name, path); Py_DECREF(msg); goto error; |