mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
registrybackend: fix memory leak
This commit is contained in:
parent
b8fc289e8f
commit
c4d943186e
@ -809,6 +809,10 @@ registry_read (HKEY hpath,
|
||||
if (result != ERROR_SUCCESS)
|
||||
{
|
||||
handle_read_error (result, path_name, value_name);
|
||||
|
||||
if (p_value->type != REG_DWORD)
|
||||
g_free (buffer);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user