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

CONC-49 fixup

test_conc49(): Do not leak memory.
This commit is contained in:
Marko Mäkelä
2021-07-22 15:55:45 +03:00
parent 7d3d7c5ff4
commit 490100ccac

View File

@@ -844,7 +844,10 @@ static int test_conc49(MYSQL *mysql)
check_mysql_rc(rc, mysql);
res= mysql_store_result(mysql);
row= mysql_fetch_row(res);
if (atol(row[0]) == 0) {
i= !atol(row[0]);
mysql_free_result(res);
if (i) {
diag("Load local infile disable");
return SKIP;
}