summaryrefslogtreecommitdiffstats
path: root/man_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-24 12:22:43 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-24 12:22:43 +0000
commite947eb01a9260dc1678f7d08c74924bebac5e5f9 (patch)
treeb562133559fbd29dc0d21e703c809eccc5559ad0 /man_action.c
parent4c53879773d3e7634cc8a1d4f10d4a77685437d5 (diff)
downloadmandoc-e947eb01a9260dc1678f7d08c74924bebac5e5f9.tar.gz
Fixed memory leak for `AT' (-man input).
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 0aa0555a..7ce1b126 100644
--- a/man_action.c
+++ b/man_action.c
@@ -219,6 +219,9 @@ post_AT(struct man *m)
p = unix_versions[0];
}
+ if (m->meta.source)
+ free(m->meta.source);
+
m->meta.source = mandoc_strdup(p);
return(1);