* g10/decrypt-data.c (decrypt_data): Free 'filename'.
Signed-off-by: Justus Winter <justus@g10code.com>
(cherry picked from commit
6d3edfd972c1114f43f6b35773dc25e0256f48f4)
Gbp-Pq: Name 0057-g10-Fix-memory-leak.patch
if (opt.unwrap_encryption)
{
- char *filename;
+ char *filename = NULL;
estream_t fp;
rc = get_output_file ("", 0, ed->buf, &filename, &fp);
if (! rc)
if (afx)
release_armor_context (afx);
}
+ xfree (filename);
}
else
proc_packets (ctrl, procctx, ed->buf );