fix refleak in error condition
This commit is contained in:
parent
b5a1d7536d
commit
e4309f7f14
|
@ -908,6 +908,7 @@ get_data(char *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: %s", archive);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue