From: Date: September 12 2008 8:18pm Subject: bzr push into mysql-6.0-runtime branch (konstantin:2712 to 2713) List-Archive: http://lists.mysql.com/commits/54001 Message-Id: <20080912181840.9F9463D075@vajra.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 2713 Konstantin Osipov 2008-09-12 Fix memory leaks in mysql_client_test. modified: tests/mysql_client_test.c 2712 Konstantin Osipov 2008-09-12 Update .bzrignore with new linked files. modified: .bzrignore === modified file 'tests/mysql_client_test.c' --- a/tests/mysql_client_test.c 2008-09-04 18:30:34 +0000 +++ b/tests/mysql_client_test.c 2008-09-12 17:54:55 +0000 @@ -1920,6 +1920,8 @@ static void test_wl4435() mct_log("mysql_stmt_next_result(): %d; field_count: %d\n", (int) rc, (int) mysql->field_count); + free(rs_bind); + mysql_free_result(rs); if (rc > 0) { printf("Error: %s (errno: %d)\n", @@ -1937,7 +1939,6 @@ static void test_wl4435() } } - free(rs_bind); } mysql_stmt_close(stmt); @@ -18366,6 +18367,7 @@ static void test_bug36004() query_int_variable(mysql, "@@warning_count", &warning_count); DIE_UNLESS(warning_count == 0); + mysql_stmt_close(stmt); DBUG_VOID_RETURN; }