msi: Fixed missing free in an error path (Coverity).

This commit is contained in:
Marcus Meissner 2014-03-08 09:48:58 +01:00 committed by Alexandre Julliard
parent 6e25c34f2f
commit 3fa41c9e70
1 changed files with 5 additions and 1 deletions

View File

@ -5813,7 +5813,11 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
ERR("Query failed\n");
goto done;
}
if (!(key = MSI_RecordGetString(row, 6))) goto done;
if (!(key = MSI_RecordGetString(row, 6)))
{
msiobj_release(&row->hdr);
goto done;
}
file = msi_get_loaded_file(package, key);
msiobj_release(&row->hdr);
if (!file)