aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 16:27:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 16:27:23 +0000
commitc524f873afc76c8c73dc6b1bde47aff22ae40cea (patch)
tree481ba10792fa98321769b22923d7ed466e53143c /man_action.c
parent619da5a7b0c931ea622bdd14c639e77e854f5ba1 (diff)
downloadmandoc-c524f873afc76c8c73dc6b1bde47aff22ae40cea.tar.gz
mandoc-c524f873afc76c8c73dc6b1bde47aff22ae40cea.tar.zst
mandoc-c524f873afc76c8c73dc6b1bde47aff22ae40cea.zip
Fixed memory leak introduced in last checkin of man_action TH parsing (only if TH is called again, which never happens anyway).
Fixed my email address in man_action.c and msec.c. Removed superfluous <time.h> inclusion in msec.c.
Diffstat (limited to 'man_action.c')
-rw-r--r--man_action.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/man_action.c b/man_action.c
index 9a443dca..2425c13a 100644
--- a/man_action.c
+++ b/man_action.c
@@ -1,6 +1,6 @@
-/* $Id: man_action.c,v 1.31 2010/05/15 15:54:39 kristaps Exp $ */
+/* $Id: man_action.c,v 1.32 2010/05/15 16:27:23 kristaps Exp $ */
/*
- * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
+ * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -151,6 +151,8 @@ post_TH(struct man *m)
free(m->meta.vol);
if (m->meta.source)
free(m->meta.source);
+ if (m->meta.msec)
+ free(m->meta.msec);
m->meta.title = m->meta.vol =
m->meta.msec = m->meta.source = NULL;