source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Plug second meta.source leak in `UT' handling.
@ 2010-05-24 13:36 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-05-24 13:36 UTC (permalink / raw)
  To: source

Log Message:
-----------
Plug second meta.source leak in `UT' handling.

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

Revision Data
-------------
Index: man_action.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_action.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -Lman_action.c -Lman_action.c -u -p -r1.37 -r1.38
--- man_action.c
+++ man_action.c
@@ -262,6 +262,9 @@ post_UC(struct man *m)
 			p = bsd_versions[0];
 	}
 
+	if (m->meta.source)
+		free(m->meta.source);
+
 	m->meta.source = mandoc_strdup(p);
 
 	return(1);
--
 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-24 13:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-24 13:36 mdocml: Plug second meta.source leak in `UT' handling 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).