aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-12-22 11:44:13 +0000
committerNIIBE Yutaka <[email protected]>2015-01-13 02:03:12 +0000
commite2e822d22526c1545e095bc24173b732137f5737 (patch)
tree03cc45e59b16545a52799e1c2f06f8b46cce8490
parentgpg: Fix possible read of unallocated memory (diff)
downloadgnupg-e2e822d22526c1545e095bc24173b732137f5737.tar.gz
gnupg-e2e822d22526c1545e095bc24173b732137f5737.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 f780952ad..86c3c7081 100644
--- a/doc/yat2m.c
+++ b/doc/yat2m.c
@@ -656,6 +656,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;
}