After opening a file with gzdopen(3), we have to call gzclose(3) or
authorschwarze <schwarze@openbsd.org>
Fri, 23 Feb 2018 21:34:37 +0000 (21:34 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 23 Feb 2018 21:34:37 +0000 (21:34 +0000)
commit1485d9f769010a0bf0e2f9241be0d0dce6fed4e7
tree0b2a3a382b5c043fe619843a9a7a21a132d90d40
parent37eff6cbfd3f71a47dcff7f744eb568687788467
After opening a file with gzdopen(3), we have to call gzclose(3) or
we leak memory internally used by zlib to keep compression state.
Bug reported by Wolfgang Mueller <vehk at vehk dot de> who also
provided an incomplete patch, part of which i'm using in this commit.
usr.bin/mandoc/read.c