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

fix: added the closing of the file descriptor if the check_mysql_rc

macro will return FAIL to avoid memory leaks
This commit is contained in:
Pavol Sloboda
2025-04-11 13:15:09 +02:00
committed by Georg Richter
parent 9fb319a7e7
commit 7009f60416

View File

@@ -287,6 +287,8 @@ static int test_frm_bug(MYSQL *mysql)
}
rc= mysql_query(mysql, "SHOW TABLE STATUS like 'test_frm_bug'");
if (rc)
fclose(test_file);
check_mysql_rc(rc, mysql);
result= mysql_store_result(mysql);