Hi, I'm using mandoc on a system with a significant quantity of gzipped manpages, and noticed its memory usage being unusually high. After investigating, I found that in read_whole_file, mandoc opens the gzipped file, but then never closes it before returning from the function. Find attached a patch which solves this issue. -- Wolfgang Müller