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

fix memory leaks to keep LeakSanitizer happy

This commit is contained in:
Sergei Golubchik
2019-03-05 00:28:28 +01:00
parent 255f3432a0
commit 4ac8030b33
3 changed files with 7 additions and 0 deletions

View File

@@ -347,6 +347,8 @@ static int bulk_null(MYSQL *mysql)
check_stmt_rc(rc, stmt);
mysql_stmt_close(stmt);
free(buf[0]);
free(buf[1]);
free(buf);
rc= mysql_query(mysql, "DROP TABLE IF EXISTS bulk_null");
check_mysql_rc(rc, mysql);