chiark / gitweb /
tools: Fix memory leak.
authorJustus Winter <justus@g10code.com>
Mon, 23 Jan 2017 10:52:30 +0000 (11:52 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commit35b1a31cf189b1ab6333b6fc16a425523421eec7
tree8e8eeb315fe93cdbd80ba519da2425a192470b4a
parenteb210e8c5736335346a88f7dbdd7e1a4013de114
tools: Fix memory leak.

* 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
tools/gpgconf-comp.c