mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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:
parent
96acbdd726
commit
13dc75a4e7
@ -1159,7 +1159,10 @@ path_remove (HWND hwndParent, int string_size, char *variables,
|
|||||||
free (path);
|
free (path);
|
||||||
|
|
||||||
if (! changed)
|
if (! changed)
|
||||||
|
{
|
||||||
|
free (path_new);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Set a key for our CLSID. */
|
/* Set a key for our CLSID. */
|
||||||
RegCreateKey (root_key, env_reg, &key_handle);
|
RegCreateKey (root_key, env_reg, &key_handle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user