diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-24 12:22:43 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-24 12:22:43 +0000 |
commit | e947eb01a9260dc1678f7d08c74924bebac5e5f9 (patch) | |
tree | b562133559fbd29dc0d21e703c809eccc5559ad0 | |
parent | 4c53879773d3e7634cc8a1d4f10d4a77685437d5 (diff) | |
download | mandoc-e947eb01a9260dc1678f7d08c74924bebac5e5f9.tar.gz |
Fixed memory leak for `AT' (-man input).
-rw-r--r-- | man_action.c | 3 |
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); |