diff options
| author | Neil Schemenauer <nas-github@arctrix.com> | 2017-12-07 16:24:59 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-07 16:24:59 -0800 |
| commit | 11cc289490b7b275fc0a033e2b376a8d4c780d9b (patch) | |
| tree | 854214098f962e0aaf639ba4b35e5af009e6ce5b | |
| parent | dd431b32f4a599fff9c9cddfe9d48cc66b347481 (diff) | |
| download | cpython-git-11cc289490b7b275fc0a033e2b376a8d4c780d9b.tar.gz | |
Fix missing DECREF of mod. (#4749)
| -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 cc7417ba84..dc79685abd 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1735,6 +1735,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals, } } else { + Py_XDECREF(mod); mod = import_find_and_load(abs_name); if (mod == NULL) { goto error; |
