diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-03-23 14:31:01 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-03-23 14:31:01 (GMT) |
commit | a11e4c13b1774a9fe463518b2a2a4e24f4da84d0 (patch) | |
tree | 9535588e193920e9e77a819c9ab64b0106dacde9 /Python | |
parent | 29fd2baf82977e66f3ad3869e3d62f12e2200678 (diff) | |
download | cpython-a11e4c13b1774a9fe463518b2a2a4e24f4da84d0.zip cpython-a11e4c13b1774a9fe463518b2a2a4e24f4da84d0.tar.gz cpython-a11e4c13b1774a9fe463518b2a2a4e24f4da84d0.tar.bz2 |
SF patch #708201, unchecked return value in import.c by Jason Harper
Will backport.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index 2038cfd..010e821 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1924,6 +1924,8 @@ PyImport_ImportModule(char *name) PyObject *result; pname = PyString_FromString(name); + if (pname == NULL) + return NULL; result = PyImport_Import(pname); Py_DECREF(pname); return result; |