Package: gnupg / 1.4.18-7+deb8u5

0023-doc-Fix-memory-leak-in-yat2m.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From e2e822d22526c1545e095bc24173b732137f5737 Mon Sep 17 00:00:00 2001
From: Werner Koch <wk@gnupg.org>
Date: Mon, 22 Dec 2014 12:44:13 +0100
Subject: [PATCH 23/45] doc: Fix memory leak in yat2m.

* doc/yat2m.c (write_th): Free NAME.
--

Reported-by: Joshua Rogers <git@internot.info>
---
 doc/yat2m.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/yat2m.c b/doc/yat2m.c
index f780952..86c3c70 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;
 }
 
-- 
2.1.4