Fixed resource leak in blr_file.
This commit is contained in:
@ -258,6 +258,7 @@ int fd;
|
|||||||
LOGIF(LE, (skygw_log_write(LOGFILE_ERROR,
|
LOGIF(LE, (skygw_log_write(LOGFILE_ERROR,
|
||||||
"%s: binlog file %s has an invalid length %d.",
|
"%s: binlog file %s has an invalid length %d.",
|
||||||
router->service->name, path, router->binlog_position)));
|
router->service->name, path, router->binlog_position)));
|
||||||
|
close(fd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user