Commit be1b1605 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Free the columns view if check_column_exists fails.

parent 1a4a112d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment