Commit b42f9df9 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Fix a couple of memory leaks in the test code.

parent 36dd205f
...@@ -1196,6 +1196,7 @@ static void test_markers(void) ...@@ -1196,6 +1196,7 @@ static void test_markers(void)
query = "CREATE TABLE `Table` ( `One` SHORT NOT NULL, `Two` CHAR(255) PRIMARY KEY `One`)"; query = "CREATE TABLE `Table` ( `One` SHORT NOT NULL, `Two` CHAR(255) PRIMARY KEY `One`)";
r = run_query(hdb, 0, query); r = run_query(hdb, 0, query);
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
MsiCloseHandle(rec);
/* try table name as marker */ /* try table name as marker */
rec = MsiCreateRecord(1); rec = MsiCreateRecord(1);
...@@ -1351,6 +1352,7 @@ static void test_markers(void) ...@@ -1351,6 +1352,7 @@ static void test_markers(void)
query = "INSERT INTO `Table` ( `One`, `Two` ) VALUES ( ?, ? )"; query = "INSERT INTO `Table` ( `One`, `Two` ) VALUES ( ?, ? )";
r = run_query(hdb, rec, query); r = run_query(hdb, rec, query);
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
MsiCloseHandle(rec);
MsiCloseHandle(hdb); MsiCloseHandle(hdb);
DeleteFileA(msifile); DeleteFileA(msifile);
......
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