summaryrefslogtreecommitdiff
path: root/storage/innobase/include/log0recv.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-08-21 11:54:16 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-08-21 11:54:16 +0300
commitd98ccbe1e1a8190d295fe91942ba739a12d9e245 (patch)
treec500d0b5be023530260ffaf1f85c51580b766403 /storage/innobase/include/log0recv.h
parentf2739e2a96d6e73922577cd2dc8611aab81e6024 (diff)
downloadmariadb-git-d98ccbe1e1a8190d295fe91942ba739a12d9e245.tar.gz
MDEV-23526 InnoDB leaks memory for some static objects
Leaks of some members of statically allocated objects are not being reported by AddressSanitizer or Valgrind, but they can be reported by implementing SAFEMALLOC instrumentation. These leaks were identified and original fixes provided by Michael Widenius and Vicențiu Ciorbaru.
Diffstat (limited to 'storage/innobase/include/log0recv.h')
-rw-r--r--storage/innobase/include/log0recv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/include/log0recv.h b/storage/innobase/include/log0recv.h
index fe36b3a5c83..b8d7e40246c 100644
--- a/storage/innobase/include/log0recv.h
+++ b/storage/innobase/include/log0recv.h
@@ -302,7 +302,7 @@ public:
void read(os_offset_t offset, span<byte> buf);
inline size_t files_size();
- void close_files() { files.clear(); }
+ void close_files() { files.clear(); files.shrink_to_fit(); }
private:
/** Attempt to initialize a page based on redo log records.