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>
Tue, 14 Feb 2017 00:29:34 +0000 (00:29 +0000)
commit3a612c98029664974dcbe3583e0372367278cecf
treeebe17b7bf145678343faa534bff86937d2f7580b
parent2caee1f8324a1c3f444b5a456de706642ad50b2f
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