1 From: Justus Winter <justus@g10code.com>
2 Date: Tue, 28 Mar 2017 12:10:28 +0200
3 Subject: g10: Fix memory leak.
5 * g10/decrypt-data.c (decrypt_data): Free 'filename'.
7 Signed-off-by: Justus Winter <justus@g10code.com>
8 (cherry picked from commit 6d3edfd972c1114f43f6b35773dc25e0256f48f4)
10 g10/decrypt-data.c | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
13 diff --git a/g10/decrypt-data.c b/g10/decrypt-data.c
14 index 585b150..f5843d6 100644
15 --- a/g10/decrypt-data.c
16 +++ b/g10/decrypt-data.c
17 @@ -222,7 +222,7 @@ decrypt_data (ctrl_t ctrl, void *procctx, PKT_encrypted *ed, DEK *dek)
19 if (opt.unwrap_encryption)
22 + char *filename = NULL;
24 rc = get_output_file ("", 0, ed->buf, &filename, &fp);
26 @@ -248,6 +248,7 @@ decrypt_data (ctrl_t ctrl, void *procctx, PKT_encrypted *ed, DEK *dek)
28 release_armor_context (afx);
33 proc_packets (ctrl, procctx, ed->buf );