aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-12-22 11:44:13 +0000
committerNIIBE Yutaka <[email protected]>2015-01-13 01:51:38 +0000
commit01b364b6da2fbb8850178674e1534d725cd760c8 (patch)
tree9ee15170b739c8fce554909121b4e4522b9f6d68
parentgpgsm: Return NULL on fail (diff)
downloadgnupg-01b364b6da2fbb8850178674e1534d725cd760c8.tar.gz
gnupg-01b364b6da2fbb8850178674e1534d725cd760c8.zip
doc: Fix memory leak in yat2m.
* doc/yat2m.c (write_th): Free NAME. -- Reported-by: Joshua Rogers <[email protected]>
-rw-r--r--doc/yat2m.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/yat2m.c b/doc/yat2m.c
index 2ac43902a..fc932d964 100644
--- a/doc/yat2m.c
+++ b/doc/yat2m.c
@@ -609,6 +609,7 @@ 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;
}