Christoph Haller <ch@rodos.fzk.de> writes:
> Tom was referring to close(), not fclose().
> I once had an awful time searching for a memory leak caused
> by a typo using close instead of fclose.
> So adding checks for both is probably a good idea.
Already done.
regards, tom lane