diff options
| author | Brian Curtin <brian@python.org> | 2012-04-17 21:57:09 (GMT) |
|---|---|---|
| committer | Brian Curtin <brian@python.org> | 2012-04-17 21:57:09 (GMT) |
| commit | 09b86d1196427f2028d7e072b106847d8c693815 (patch) | |
| tree | c06e9fe5b6a732d07f2987ff86081165bd69ebf5 /Python/dynload_win.c | |
| parent | fba807ac44ff6804dd1be7c3962fc3455c8e7763 (diff) | |
| download | cpython-09b86d1196427f2028d7e072b106847d8c693815.zip cpython-09b86d1196427f2028d7e072b106847d8c693815.tar.gz cpython-09b86d1196427f2028d7e072b106847d8c693815.tar.bz2 | |
Fix #14600. Correct reference handling and naming of ImportError convenience function
Diffstat (limited to 'Python/dynload_win.c')
| -rw-r--r-- | Python/dynload_win.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c index ef3e2c5..7bf3dfc 100644 --- a/Python/dynload_win.c +++ b/Python/dynload_win.c @@ -254,9 +254,9 @@ dl_funcptr _PyImport_GetDynLoadWindows(const char *shortname, theLength)); } if (message != NULL) { - PyErr_SetFromImportErrorWithNameAndPath(message, - PyUnicode_FromString(shortname), - pathname); + PyErr_SetImportError(message, PyUnicode_FromString(shortname), + pathname); + Py_DECREF(message); } return NULL; } else { |
