summaryrefslogtreecommitdiff
path: root/simplejson/_speedups.c
diff options
context:
space:
mode:
Diffstat (limited to 'simplejson/_speedups.c')
-rw-r--r--simplejson/_speedups.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
index b691b4b..f352443 100644
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -3357,10 +3357,11 @@ static struct PyModuleDef moduledef = {
PyObject *
import_dependency(char *module_name, char *attr_name)
{
+ PyObject *rval;
PyObject *module = PyImport_ImportModule(module_name);
if (module == NULL)
return NULL;
- PyObject *rval = PyObject_GetAttrString(module, attr_name);
+ rval = PyObject_GetAttrString(module, attr_name);
Py_DECREF(module);
return rval;
}