The error path after bw.Flush() failed referenced fd.Close without calling it, so the descriptor was not closed when flush failed. Signed-off-by: Weixie Cui <cuiweixie@gmail.com>
The error path after bw.Flush() failed referenced fd.Close without calling it, so the descriptor was not closed when flush failed. Signed-off-by: Weixie Cui <cuiweixie@gmail.com>