If allocate or truncate throws, we have to close the file.
Fixes #4877
Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com>
Message-Id: <20191114174810.49004-1-espindola@scylladb.com>
(cherry picked from commit 6160b9017d)
85 KiB
85 KiB