summaryrefslogtreecommitdiffstats
path: root/man_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-24 13:36:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-24 13:36:53 +0000
commit40346fd3ed40ad580ad71cd96c517fdccce10a80 (patch)
treedd1ad9fcc6a620c0ab21c9e3000dbbdb34f1b070 /man_action.c
parentdc069531069f046fc9026ca64b3fc05baf0526d4 (diff)
downloadmandoc-40346fd3ed40ad580ad71cd96c517fdccce10a80.tar.gz
Plug second meta.source leak in `UT' handling.
Diffstat (limited to 'man_action.c')
-rw-r--r--man_action.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/man_action.c b/man_action.c
index 7ce1b126..baf4a3c2 100644
--- a/man_action.c
+++ b/man_action.c
@@ -262,6 +262,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);