diff options
| author | Ingo Schwarze <schwarze@openbsd.org> | 2021-10-04 14:19:14 +0000 |
|---|---|---|
| committer | Ingo Schwarze <schwarze@openbsd.org> | 2021-10-04 14:19:14 +0000 |
| commit | 6cf3130222c8a052812f22a637ff37432d52c42f (patch) | |
| tree | 550ae93b3df3b3a47f0251eed798aa6875e02b9d /roff.c | |
| parent | f4174837da105cb47f793106fb8f2af2eacaf008 (diff) | |
| download | mandoc-6cf3130222c8a052812f22a637ff37432d52c42f.tar.gz mandoc-6cf3130222c8a052812f22a637ff37432d52c42f.zip | |
store the operating system name obtained from uname(3) in the adequate
struct together with similar state date rather than in a function-scope
static variable, such that it can be free(3)d in roff_man_free();
no functional change
Diffstat (limited to 'roff.c')
| -rw-r--r-- | roff.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,6 @@ -/* $Id: roff.c,v 1.379 2021/10/04 10:12:27 schwarze Exp $ */ +/* $Id: roff.c,v 1.380 2021/10/04 14:19:14 schwarze Exp $ */ /* - * Copyright (c) 2010-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010-2015, 2017-2021 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * * 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); } |
