1
0
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:
Joshua Rogers 2014-12-23 00:47:50 +11:00 committed by Werner Koch
parent d2d8481e38
commit cf88337f8a

View File

@ -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);