1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix ASAN issues in the tests

This commit is contained in:
Oleksandr Byelkin
2021-01-27 20:25:13 +01:00
parent b503e52288
commit e21d21d71f
4 changed files with 10 additions and 10 deletions

View File

@@ -161,7 +161,7 @@ static int test_bug16143(MYSQL *mysql)
FAIL_IF(!stmt, mysql_error(mysql));
/* Check mysql_stmt_sqlstate return "no error" */
FAIL_UNLESS(strcmp(mysql_stmt_sqlstate(stmt), "00000") == 0, "Expected SQLstate 000000");
free(stmt);
mysql_stmt_close(stmt);
return OK;
}