summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-10-04 14:19:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-10-04 14:19:14 +0000
commitd9e36737be633b363b9bcd7279d111cf27e49f8a (patch)
tree395491bb1f5bcaac41cc22ed6fd87aa0c4a55459 /roff.c
parent2370f894fe9bfb6eec392f2caf8d72b24d9d920b (diff)
downloadmandoc-d9e36737be633b363b9bcd7279d111cf27e49f8a.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/roff.c b/roff.c
index 42a13e9e..932a0e1d 100644
--- a/roff.c
+++ b/roff.c
@@ -1,6 +1,6 @@
/* $Id$ */
/*
- * 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);
}