gdraheim / zziplib

The ZZIPlib provides read access on ZIP-archives and unpacked data. It features an additional simplified API following the standard Posix API for file access
Other
62 stars 50 forks source link

Avoid memory leak from __zzip_parse_root_directory(). #59

Closed jmoellers closed 6 years ago

jmoellers commented 6 years ago

When __zzip_parse_root_directory() returns with an error before assigning hdr0 to *hdr_return or if hdr_return is NULL, hdr0 must be free'd locally.