* tools/gpgconf-comp.c (change_options_file): Fix leak.
--
Previously, 'src_filename' and 'orig_filename' leaked if creating the
backup file failed.
Signed-off-by: Justus Winter <justus@g10code.com>
(cherry picked from commit
5b28f025085b386e0ec49535d4cd3f875a414eb0)
Gbp-Pq: Name 0012-tools-Fix-memory-leak.patch
if (res < 0 && errno != ENOENT)
{
xfree (dest_filename);
if (res < 0 && errno != ENOENT)
{
xfree (dest_filename);
+ xfree (src_filename);
+ xfree (orig_filename);
return -1;
}
if (res < 0)
return -1;
}
if (res < 0)