Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba77788

Browse files
committed
merge 3.5
2 parents e45abae + d4d7737 commit ba77788

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/zipimport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,7 @@ get_data(PyObject *archive, PyObject *toc_entry)
11431143
bytes_read = fread(buf, 1, data_size, fp);
11441144
} else {
11451145
fclose(fp);
1146+
Py_DECREF(raw_data);
11461147
PyErr_Format(ZipImportError, "can't read Zip file: %R", archive);
11471148
return NULL;
11481149
}

0 commit comments

Comments
 (0)