mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue