[PATCH 4/4] * free 'line' after use in yat2m.c
Joshua Rogers
git at internot.info
Sun Dec 21 19:21:31 CET 2014
'line' was not freed upon printing in yat2m.c, leading to memory leaks.
---
doc/yat2m.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/doc/yat2m.c b/doc/yat2m.c
index 91b551f..bcc29d7 100644
--- a/doc/yat2m.c
+++ b/doc/yat2m.c
@@ -656,6 +656,8 @@ write_th (FILE *fp)
*p++ = 0;
fprintf (fp, ".TH %s %s %s \"%s\" \"%s\"\n",
name, p, isodatestring (), opt_release, opt_source);
+
+ free (name);
return 0;
}
--
1.9.1
More information about the Gnupg-devel
mailing list