summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-10-25 16:26:57 +0200
committerunknown <msvensson@neptunus.(none)>2006-10-25 16:26:57 +0200
commit02b656e54f391a7915c62c8dc6c29196eda94e61 (patch)
treea80e9f6cdd496ff49ce847ae57055e26e1356aae /tests
parentcc06a4ca2d330ccb34512fd31fd9eac7cfeca4ad (diff)
downloadmariadb-git-02b656e54f391a7915c62c8dc6c29196eda94e61.tar.gz
Fix memory leaks found when valgrinding mysql_client_test
Remove one warning tests/mysql_client_test.c: Fix memory leaks Remove one warning
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 96fdb9a4696..da7fde469ad 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -14480,6 +14480,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);
}
@@ -14928,6 +14929,8 @@ 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);
+ mysql_stmt_free_result(stmt);
/* III. Cleanup */
rc= mysql_query(mysql, "drop table t1");
@@ -15104,6 +15107,9 @@ static void test_bug14169()
if (!opt_silent)
printf("GROUP_CONCAT() result type %i", field[1].type);
DIE_UNLESS(field[1].type == MYSQL_TYPE_BLOB);
+ mysql_free_result(res);
+ mysql_stmt_free_result(stmt);
+ mysql_stmt_close(stmt);
rc= mysql_query(mysql, "drop table t1");
myquery(rc);
@@ -15168,7 +15174,7 @@ static void test_bug15752()
MYSQL mysql_local;
int rc, i;
const int ITERATION_COUNT= 100;
- char *query= "CALL p1()";
+ const char *query= "CALL p1()";
myheader("test_bug15752");