summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-05-24 13:42:59 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-05-24 13:42:59 +0000
commit426525999b166c10113c0b8e182a9c29722b3943 (patch)
treefa7ecfc82bd5bc5fc7737c3f37b0dd346fd3b4f8 /usr.bin/mandoc
parent065a26d3731f7c0da6ec831797c857f400d53335 (diff)
plug second meta.source leak in .UT handling; from kristaps@
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/man_action.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_action.c b/usr.bin/mandoc/man_action.c
index 6a10bc7d9fe..7b72907e6c5 100644
--- a/usr.bin/mandoc/man_action.c
+++ b/usr.bin/mandoc/man_action.c
@@ -1,4 +1,4 @@
-/* $Id: man_action.c,v 1.21 2010/05/24 12:38:08 schwarze Exp $ */
+/* $Id: man_action.c,v 1.22 2010/05/24 13:42:58 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -259,6 +259,9 @@ post_UC(struct man *m)
p = bsd_versions[0];
}
+ if (m->meta.source)
+ free(m->meta.source);
+
m->meta.source = mandoc_strdup(p);
return(1);