msi: Free the columns view if check_column_exists fails.
This commit is contained in:
parent
1a4a112d76
commit
be1b1605f9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue