From a7ad25b01bd7716d24181657abd4fb203a883371 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Thu, 27 Feb 2025 13:50:01 +0100 Subject: [PATCH] Fix memory leack in the test --- unittest/libmariadb/errors.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unittest/libmariadb/errors.c b/unittest/libmariadb/errors.c index bd4f05fb..6f2334a1 100644 --- a/unittest/libmariadb/errors.c +++ b/unittest/libmariadb/errors.c @@ -337,6 +337,10 @@ static int test_mdev35935(MYSQL *mysql) mysql_stmt_close(stmt); rc= mysql_query(mysql, "DROP TABLE IF EXISTS bulk1"); check_mysql_rc(rc, mysql); + + free(buffer); + free(lengths); + free(vals); return OK; }