From e947eb01a9260dc1678f7d08c74924bebac5e5f9 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 24 May 2010 12:22:43 +0000 Subject: Fixed memory leak for `AT' (-man input). --- man_action.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit