mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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>
This commit is contained in:
parent
5aafa56dff
commit
5b28f02508
@ -2641,6 +2641,8 @@ change_options_file (gc_component_t component, gc_backend_t backend,
|
||||
if (res < 0 && errno != ENOENT)
|
||||
{
|
||||
xfree (dest_filename);
|
||||
xfree (src_filename);
|
||||
xfree (orig_filename);
|
||||
return -1;
|
||||
}
|
||||
if (res < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user