summaryrefslogtreecommitdiffstats
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
commit61fa6e4ca6c3633d815d9f5153a481a44c5f3162 (patch)
tree80c5cc9c2bf88cad92b270ad0bbd7e0854fa2b85
parent2f01ab1363bf6ab718b3fb6370fc6735e3e8bc02 (diff)
downloadmandoc-61fa6e4ca6c3633d815d9f5153a481a44c5f3162.tar.gz
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.
-rw-r--r--man_action.c4
-rw-r--r--msec.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/man_action.c b/man_action.c
index 66488d64..abd9cc62 100644
--- a/man_action.c
+++ b/man_action.c
@@ -1,6 +1,6 @@
/* $Id$ */
/*
- * 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;
diff --git a/msec.c b/msec.c
index 058cb992..b1ce06a3 100644
--- a/msec.c
+++ b/msec.c
@@ -1,6 +1,6 @@
/* $Id$ */
/*
- * Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
+ * Copyright (c) 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
@@ -20,7 +20,6 @@
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include "libmdoc.h"