registrybackend: fix memory leak

This commit is contained in:
Руслан Ижбулатов 2016-02-05 09:39:21 +01:00 committed by Ignacio Casal Quinteiro
parent b8fc289e8f
commit c4d943186e

View File

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