Commit a11e4c13 authored by Neal Norwitz's avatar Neal Norwitz

SF patch #708201, unchecked return value in import.c by Jason Harper

Will backport.
parent 29fd2baf
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment