=================================================================== RCS file: /cvs/mandoc/Attic/man_action.c,v retrieving revision 1.36 retrieving revision 1.38 diff -u -p -r1.36 -r1.38 --- mandoc/Attic/man_action.c 2010/05/17 22:11:42 1.36 +++ mandoc/Attic/man_action.c 2010/05/24 13:36:53 1.38 @@ -1,4 +1,4 @@ -/* $Id: man_action.c,v 1.36 2010/05/17 22:11:42 kristaps Exp $ */ +/* $Id: man_action.c,v 1.38 2010/05/24 13:36:53 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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); @@ -258,6 +261,9 @@ post_UC(struct man *m) else p = bsd_versions[0]; } + + if (m->meta.source) + free(m->meta.source); m->meta.source = mandoc_strdup(p);