speedo: Fix a minor memleak in the installer

* build-aux/speedo/w32/g4wihelp.c (path_remove): Free path_new on
early return.

--
It's a weird condition in a once run function in a throwaway
process but -- yeah. It's a memleak and static analysis can
see it.

GnuPG-Bug-Id: T3197
Signed-off-by: Andre Heinecke <aheinecke@intevation.de>
This commit is contained in:
Andre Heinecke 2017-06-07 15:30:14 +02:00
parent 96acbdd726
commit 13dc75a4e7
No known key found for this signature in database
GPG Key ID: 1FDF723CF462B6B1
1 changed files with 4 additions and 1 deletions

View File

@ -1159,7 +1159,10 @@ path_remove (HWND hwndParent, int string_size, char *variables,
free (path);
if (! changed)
return;
{
free (path_new);
return;
}
/* Set a key for our CLSID. */
RegCreateKey (root_key, env_reg, &key_handle);