diff options
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1332,6 +1332,8 @@ parse_cat(struct mpage *mpage, int fd) fopen(mpage->mlinks->file, "r") : fdopen(fd, "r"); if (NULL == stream) { + if (-1 != fd) + close(fd); if (warnings) say(mpage->mlinks->file, "&fopen"); return; |