diff options
Diffstat (limited to 'db/recno')
-rw-r--r-- | db/recno/rec_close.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/recno/rec_close.c b/db/recno/rec_close.c index 977493fe5b..8a3c4d77d6 100644 --- a/db/recno/rec_close.c +++ b/db/recno/rec_close.c @@ -79,13 +79,14 @@ __rec_close(dbp) if (F_ISSET(t, R_MEMMAPPED) && munmap(t->bt_smap, t->bt_msize)) status = RET_ERROR; - if (!F_ISSET(t, R_INMEM)) + if (!F_ISSET(t, R_INMEM)) { if (F_ISSET(t, R_CLOSEFP)) { if (fclose(t->bt_rfp)) status = RET_ERROR; } else if (close(t->bt_rfd)) status = RET_ERROR; + } if (__bt_close(dbp) == RET_ERROR) status = RET_ERROR; |