=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.378 retrieving revision 1.380 diff -u -p -r1.378 -r1.380 --- mandoc/roff.c 2021/08/10 12:55:04 1.378 +++ mandoc/roff.c 2021/10/04 14:19:14 1.380 @@ -1,6 +1,6 @@ -/* $Id: roff.c,v 1.378 2021/08/10 12:55:04 schwarze Exp $ */ +/* $Id: roff.c,v 1.380 2021/10/04 14:19:14 schwarze Exp $ */ /* - * Copyright (c) 2010-2015, 2017-2020 Ingo Schwarze + * Copyright (c) 2010-2015, 2017-2021 Ingo Schwarze * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any @@ -861,6 +861,7 @@ void roff_man_free(struct roff_man *man) { roff_man_free1(man); + free(man->os_r); free(man); } @@ -3949,9 +3950,7 @@ roff_userdef(ROFF_ARGS) r->mstacksz += 8; } ctx = r->mstack + r->mstackpos; - ctx->argsz = 0; ctx->argc = 0; - ctx->argv = NULL; /* * Collect pointers to macro argument strings,