Project

General

Profile

Bug #6504 » patch-src-os-GenericFileStoreBackend.cc

Alan Somers, 10/10/2013 09:05 AM

 
--- src/os/GenericFileStoreBackend.cc.orig 2013-10-09 23:41:28.000000000 +0000
+++ src/os/GenericFileStoreBackend.cc 2013-10-09 23:43:09.000000000 +0000
@@ -118,12 +118,12 @@
dout(0) << "detect_features: FIEMAP ioctl is supported and appears to work" << dendl;
ioctl_fiemap = true;
}
+ free(fiemap);
}
if (!m_filestore_fiemap) {
dout(0) << "detect_features: FIEMAP ioctl is disabled via 'filestore fiemap' config option" << dendl;
ioctl_fiemap = false;
}
- free(fiemap);
::unlink(fn);
TEMP_FAILURE_RETRY(::close(fd));
(1-1/2)