You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +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:
committed by
Georg Richter
parent
9fb319a7e7
commit
7009f60416
@@ -287,6 +287,8 @@ static int test_frm_bug(MYSQL *mysql)
|
|||||||
}
|
}
|
||||||
|
|
||||||
rc= mysql_query(mysql, "SHOW TABLE STATUS like 'test_frm_bug'");
|
rc= mysql_query(mysql, "SHOW TABLE STATUS like 'test_frm_bug'");
|
||||||
|
if (rc)
|
||||||
|
fclose(test_file);
|
||||||
check_mysql_rc(rc, mysql);
|
check_mysql_rc(rc, mysql);
|
||||||
|
|
||||||
result= mysql_store_result(mysql);
|
result= mysql_store_result(mysql);
|
||||||
|
Reference in New Issue
Block a user