summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-07-01 17:18:47 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-07-01 17:22:22 +0300
commit9ed50ece339358fcd5ebd8089f3c780a75b5f520 (patch)
tree66103b8811d7ee2447b8f0cfc77dbd61dce26cb2 /tests
parentea2bc974dce2ac509011807c80b36192cd18f686 (diff)
downloadmariadb-git-9ed50ece339358fcd5ebd8089f3c780a75b5f520.tar.gz
MDEV-22779: Fix a memory leak in the unit test
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 33655b80662..ec878ae830c 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -19889,6 +19889,8 @@ static void test_ps_params_in_ctes()
rc= mysql_stmt_store_result(stmt);
check_execute(stmt, rc);
+ mysql_stmt_close(stmt);
+
rc= mysql_query(mysql, "drop table t1");
myquery(rc);
}