From be1b1605f9421c363ea98fc0f8c6f9c9cece91e9 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 15 Dec 2009 18:19:03 -0800 Subject: [PATCH] msi: Free the columns view if check_column_exists fails. --- dlls/msi/alter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/msi/alter.c b/dlls/msi/alter.c index a62b13e9352..93d322bed7f 100644 --- a/dlls/msi/alter.c +++ b/dlls/msi/alter.c @@ -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)