diff options
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index 1b93b7c096..bd0d18ac31 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2827,6 +2827,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *given_globals, if (msg != NULL) { PyErr_SetFromImportErrorWithName(msg, abs_name); } + mod = NULL; goto error_with_unlock; } else if (mod != NULL) { |