s3fs-fuse/src
Eryu Guan 7978395083 Use smart pointer to manage pcfstat object
Previously pcfstat points to a raw pointer, and it may be leaked if
function returned before deleting it.

So use smart pointer to automatically release the object.

Note that currently s3fs only uses c++03, so we use auto_ptr here, not
unique_ptr, which requires c++11.

Fixes: 6ca5a24a7f ("Fix two inconsistency issues between stat cache and cache file (#2152)")
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
2023-07-19 20:15:55 +09:00
..
Makefile.am Compatible with OpenSSL 3.0 2022-11-27 21:46:08 +09:00
addhead.cpp Address cppcheck 2.10 warnings (#2163) 2023-06-25 16:04:16 +09:00
addhead.h Fix clang-tidy warnings 2020-09-21 07:03:42 +09:00
autolock.cpp Remove unneeded headers identified by IWYU (#2007) 2022-07-28 23:38:38 +09:00
autolock.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
bodydata.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
bodydata.h Fix clang-tidy warnings 2020-09-21 07:03:42 +09:00
cache.cpp Fixed segmentation fault caused by file write failure (#2123) 2023-03-11 16:45:56 +09:00
cache.h Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
common.h Enabled to load shared library for Credential and Token (#1927) 2022-10-22 10:42:07 +09:00
common_auth.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
curl.cpp Fixed data race at OPENSSL_sk_dup/free in libcurl 2023-07-12 22:51:57 +09:00
curl.h Allow mount points without directory objects by compat_dir (#2153) 2023-05-07 09:15:27 +09:00
curl_handlerpool.cpp Fixed data race at OPENSSL_sk_dup/free in libcurl 2023-07-12 22:51:57 +09:00
curl_handlerpool.h Fixed data race at OPENSSL_sk_dup/free in libcurl 2023-07-12 22:51:57 +09:00
curl_multi.cpp Support the object under no directory object path by compat_dir (#2023) 2022-10-22 15:12:00 +09:00
curl_multi.h Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
curl_util.cpp multipart upload id is converted by url encode (#2097) 2023-02-18 11:40:25 +09:00
curl_util.h Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
fdcache.cpp Check FdEntity::Open() status correctly 2023-07-05 08:50:12 +09:00
fdcache.h Replace uses of lock_already_held flag with AutoLock::Type 2022-07-30 16:20:43 +09:00
fdcache_auto.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
fdcache_auto.h Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
fdcache_entity.cpp Use smart pointer to manage pcfstat object 2023-07-19 20:15:55 +09:00
fdcache_entity.h Protect FdEntity::physical_fd with fdent_lock (#2194) 2023-06-25 16:43:15 +09:00
fdcache_fdinfo.cpp Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
fdcache_fdinfo.h Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
fdcache_page.cpp Fixed a bug when reading a reduced file without flushing (#2133) 2023-03-26 11:45:21 +09:00
fdcache_page.h Fixed errors reported by cppcheck 2.9 (#2038) 2022-09-24 15:45:13 +09:00
fdcache_pseudofd.cpp Updates for clang-tidy 15 (#2058) 2022-11-21 23:29:35 +09:00
fdcache_pseudofd.h Introduced pseudo fd and separated fd for each file opening 2021-06-04 22:42:58 +09:00
fdcache_stat.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
fdcache_stat.h Remove unneeded headers identified by IWYU (#2007) 2022-07-28 23:38:38 +09:00
fdcache_untreated.cpp Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
fdcache_untreated.h Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
gnutls_auth.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
metaheader.cpp Fixed a bug when reading a reduced file without flushing (#2133) 2023-03-26 11:45:21 +09:00
metaheader.h Fixed segmentation fault caused by file write failure (#2123) 2023-03-11 16:45:56 +09:00
mpu_util.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
mpu_util.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
mvnode.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
mvnode.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
nss_auth.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
openssl_auth.cpp Compatible with OpenSSL 3.0 2022-11-27 21:46:08 +09:00
psemaphore.h Add the stream upload which starts uploading parts before Flush 2022-07-17 22:20:45 +09:00
s3fs.cpp Fixed data race about fuse_fill_dir_t function and data pointer 2023-07-14 22:32:12 +09:00
s3fs.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
s3fs_auth.h Fix implicit narrowing conversions (#1672) 2021-06-13 12:50:07 +09:00
s3fs_cred.cpp Removed unnecessary debug output 2023-06-07 20:48:50 -07:00
s3fs_cred.h Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
s3fs_extcred.h Enabled to load shared library for Credential and Token (#1927) 2022-10-22 10:42:07 +09:00
s3fs_global.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
s3fs_help.cpp New option: bucket_size (#2148) 2023-04-23 14:04:38 +09:00
s3fs_help.h Output version and command parameters at startup 2021-03-06 19:11:57 +09:00
s3fs_logger.cpp Fixed a warning by compiling on fedora 37 2022-11-23 21:57:31 +09:00
s3fs_logger.h Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
s3fs_util.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
s3fs_util.h Set mtime/ctime/atime of all objects as nanosecond 2022-07-28 13:47:03 +09:00
s3fs_xml.cpp Explicitly handle CommonPrefixes with nocompat_dir (#2212) 2023-07-13 21:15:34 +09:00
s3fs_xml.h Explicitly handle CommonPrefixes with nocompat_dir (#2212) 2023-07-13 21:15:34 +09:00
s3objlist.cpp Remove unneeded headers identified by IWYU (#2007) 2022-07-28 23:38:38 +09:00
s3objlist.h Explicitly handle CommonPrefixes with nocompat_dir (#2212) 2023-07-13 21:15:34 +09:00
sighandlers.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
sighandlers.h Remove unneeded headers identified by IWYU (#2007) 2022-07-28 23:38:38 +09:00
string_util.cpp Fixed a bug in handling file names containing CR(0x1D) (#2136) 2023-03-26 13:19:16 +09:00
string_util.h Fixed a bug in handling file names containing CR(0x1D) (#2136) 2023-03-26 13:19:16 +09:00
test_curl_util.cpp Fix double-iteration in curl_slist_remove (#1951) 2022-05-27 22:56:20 +09:00
test_page_list.cpp Remove more unneeded headers identified by IWYU (#2011) 2022-07-30 12:06:47 +09:00
test_string_util.cpp Fixed a bug in handling file names containing CR(0x1D) (#2136) 2023-03-26 13:19:16 +09:00
test_util.h Do not NUL terminate base64 decoded output (#1752) 2021-08-31 00:15:47 +09:00
threadpoolman.cpp Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
threadpoolman.h Make some methods and parameters const (#2078) 2023-01-04 20:23:39 +09:00
types.h Fixed errors reported by cppcheck 2.9 (#2038) 2022-09-24 15:45:13 +09:00