You've already forked mariadb-connector-c
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:
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'");
|
||||
if (rc)
|
||||
fclose(test_file);
|
||||
check_mysql_rc(rc, mysql);
|
||||
|
||||
result= mysql_store_result(mysql);
|
||||
|
Reference in New Issue
Block a user