msi: Free the columns view if check_column_exists fails.

This commit is contained in:
James Hawkins 2009-12-15 18:19:03 -08:00 committed by Alexandre Julliard
parent 1a4a112d76
commit be1b1605f9
1 changed files with 3 additions and 0 deletions

View File

@ -125,7 +125,10 @@ static UINT alter_add_column(MSIALTERVIEW *av)
return r;
if (check_column_exists(av->db, av->colinfo->table, av->colinfo->column))
{
columns->ops->delete(columns);
return ERROR_BAD_QUERY_SYNTAX;
}
r = MSI_OpenQuery(av->db, &view, query, av->colinfo->table, av->colinfo->column);
if (r == ERROR_SUCCESS)