source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Fixed memory leak introduced in last checkin of man_action TH
@ 2010-05-15 16:27 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-05-15 16:27 UTC (permalink / raw)
  To: source

Log Message:
-----------
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.

Modified Files:
--------------
    mdocml:
        man_action.c
        msec.c

Revision Data
-------------
Index: man_action.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_action.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -Lman_action.c -Lman_action.c -u -p -r1.31 -r1.32
--- man_action.c
+++ 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;
Index: msec.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/msec.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -Lmsec.c -Lmsec.c -u -p -r1.6 -r1.7
--- msec.c
+++ 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"
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-15 16:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-15 16:27 mdocml: Fixed memory leak introduced in last checkin of man_action TH kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).