diff options
author | msvensson@neptunus.(none) <> | 2006-10-25 14:34:18 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2006-10-25 14:34:18 +0200 |
commit | a6d87b4c00c6d6f77ea1f88ba90c64d848c78472 (patch) | |
tree | e2b05082eea241057e21229b213b5218038891b1 /tests | |
parent | 49690815898c3f707e5d28d41d82c3295a7cf898 (diff) | |
download | mariadb-git-a6d87b4c00c6d6f77ea1f88ba90c64d848c78472.tar.gz |
Add valgrinding support for mysql_client_test
Fix two memory leaks in mysql_client_test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 2 |
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"); |