=================================================================== RCS file: /cvs/mandoc/mandocdb.c,v retrieving revision 1.269 retrieving revision 1.270 diff -u -p -r1.269 -r1.270 --- mandoc/mandocdb.c 2021/08/19 16:55:31 1.269 +++ mandoc/mandocdb.c 2021/11/05 17:04:10 1.270 @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.269 2021/08/19 16:55:31 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.270 2021/11/05 17:04:10 schwarze Exp $ */ /* * Copyright (c) 2011-2020 Ingo Schwarze * Copyright (c) 2011, 2012 Kristaps Dzonsons @@ -532,6 +532,9 @@ out: mpages_free(); ohash_delete(&mpages); ohash_delete(&mlinks); +#if DEBUG_MEMORY + mandoc_d_finish(); +#endif return exitcode; usage: progname = getprogname(); @@ -2251,11 +2254,11 @@ dbwrite(struct dba *dba) say(tfn, "&dba_write"); goto err; } - if ((fd1 = open(MANDOC_DB, O_RDONLY, 0)) == -1) { + if ((fd1 = open(MANDOC_DB, O_RDONLY)) == -1) { say(MANDOC_DB, "&open"); goto err; } - if ((fd2 = open(tfn, O_RDONLY, 0)) == -1) { + if ((fd2 = open(tfn, O_RDONLY)) == -1) { say(tfn, "&open"); goto err; }