mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tools: Free variable before return
* tools/gpgconf-comp.c: Free 'dest_filename' before it is returned upon error. -- Signed-off-by: Joshua Rogers <git@internot.info>
This commit is contained in:
parent
d2d8481e38
commit
cf88337f8a
@ -2508,7 +2508,10 @@ change_options_file (gc_component_t component, gc_backend_t backend,
|
||||
res = link (dest_filename, orig_filename);
|
||||
#endif
|
||||
if (res < 0 && errno != ENOENT)
|
||||
return -1;
|
||||
{
|
||||
xfree (dest_filename);
|
||||
return -1;
|
||||
}
|
||||
if (res < 0)
|
||||
{
|
||||
xfree (orig_filename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user