summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-10-25 14:34:18 +0200
committerunknown <msvensson@neptunus.(none)>2006-10-25 14:34:18 +0200
commit870ed0c3f5db58c969016fbe6c8492df047f21b5 (patch)
treee2b05082eea241057e21229b213b5218038891b1 /tests
parent379809f40efff336dfa7c539c3e3c3407e823740 (diff)
downloadmariadb-git-870ed0c3f5db58c969016fbe6c8492df047f21b5.tar.gz
Add valgrinding support for mysql_client_test
Fix two memory leaks in mysql_client_test mysql-test/mysql-test-run.pl: Add valgrinding support for mysql_client_test tests/mysql_client_test.c: Fix two memory leaks
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 64c260666d3..56ab4a63260 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -11778,6 +11778,7 @@ static void test_bug11718()
printf("return type: %s", (res->fields[0].type == MYSQL_TYPE_DATE)?"DATE":
"not DATE");
DIE_UNLESS(res->fields[0].type == MYSQL_TYPE_DATE);
+ mysql_free_result(res);
rc= mysql_query(mysql, "drop table t1, t2");
myquery(rc);
}
@@ -11849,6 +11850,7 @@ static void test_bug15613()
DIE_UNLESS(field[4].length == 255);
DIE_UNLESS(field[5].length == 255);
DIE_UNLESS(field[6].length == 255);
+ mysql_free_result(metadata);
/* III. Cleanup */
rc= mysql_query(mysql, "drop table t1");