diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-01-21 06:07:50 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-01-21 06:07:50 (GMT) |
commit | ba77788bba7ab0b8e2ea50f2c3b30a471b18f941 (patch) | |
tree | 360d1efd947b39f4c03f62d108b0f702b8248409 | |
parent | e45abae08f5513e6c4061a04199d67f13745ffa7 (diff) | |
parent | d4d7737c3f294d745d6c121dabb17b76cc11b9c8 (diff) | |
download | cpython-ba77788bba7ab0b8e2ea50f2c3b30a471b18f941.zip cpython-ba77788bba7ab0b8e2ea50f2c3b30a471b18f941.tar.gz cpython-ba77788bba7ab0b8e2ea50f2c3b30a471b18f941.tar.bz2 |
merge 3.5
-rw-r--r-- | Modules/zipimport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 7488e55..aa6493a 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -1143,6 +1143,7 @@ get_data(PyObject *archive, PyObject *toc_entry) bytes_read = fread(buf, 1, data_size, fp); } else { fclose(fp); + Py_DECREF(raw_data); PyErr_Format(ZipImportError, "can't read Zip file: %R", archive); return NULL; } |