msi: Fix a memory leak (valgrind).

This commit is contained in:
Hans Leidekker 2011-01-12 14:04:13 +01:00 committed by Alexandre Julliard
parent c567d1e461
commit 94f4c0f07d
1 changed files with 2 additions and 0 deletions

View File

@ -2735,6 +2735,7 @@ static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param)
{
ERR("Could not create key %s\n", debugstr_w(keypath));
msi_free(uikey);
msi_free(keypath);
return ERROR_SUCCESS;
}
@ -2786,6 +2787,7 @@ static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param)
msi_free(value_data);
msi_free(deformated);
msi_free(uikey);
msi_free(keypath);
return ERROR_SUCCESS;
}