MXS-1077: Add missing close
This commit is contained in:
@ -2388,6 +2388,7 @@ blr_file_write_master_config(ROUTER_INSTANCE *router, char *error)
|
|||||||
|
|
||||||
if (chmod(tmp_file, S_IRUSR | S_IWUSR) < 0)
|
if (chmod(tmp_file, S_IRUSR | S_IWUSR) < 0)
|
||||||
{
|
{
|
||||||
|
fclose(config_file);
|
||||||
snprintf(error, BINLOG_ERROR_MSG_LEN, "%s, errno %u",
|
snprintf(error, BINLOG_ERROR_MSG_LEN, "%s, errno %u",
|
||||||
strerror_r(errno, err_msg, sizeof(err_msg)), errno);
|
strerror_r(errno, err_msg, sizeof(err_msg)), errno);
|
||||||
return 2;
|
return 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user