Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

==214546==ERROR: LeakSanitizer: detected memory leaks #1

Closed
Ravendocker opened this issue Mar 12, 2021 · 1 comment
Closed

==214546==ERROR: LeakSanitizer: detected memory leaks #1

Ravendocker opened this issue Mar 12, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Ravendocker
Copy link

There are some mistakes about memory leaks
Direct leak of 358224 byte(s) in 7463 object(s) allocated from:
#0 0x7fed88aa336f in operator new(unsigned long) (/lib64/libasan.so.5+0x10e36f)
#1 0x40fb8b in void BPlusTree::BlockCache::PutBPlusTree::LeafNode(BPlusTree::LeafNode*) /home/fenghw/storage/BPlusTree/bplus_tree.cc:283
#2 0x40d42b in void BPlusTree::UnMapBPlusTree::LeafNode(BPlusTree::LeafNode*) const /home/fenghw/storage/BPlusTree/bplus_tree.cc:515
#3 0x4058af in BPlusTree::Put(std::string const&, std::string const&) /home/fenghw/storage/BPlusTree/bplus_tree.cc:409
#4 0x402c33 in main /home/fenghw/storage/BPlusTree/test.cc:23
#5 0x7fed87dc9554 in __libc_start_main (/lib64/libc.so.6+0x22554)

@bhhbazinga
Copy link
Owner

@Ravendocker Thank you for reminding me. There is something wrong with the destructor of BlockCache. I have fixed it

@bhhbazinga bhhbazinga added the bug Something isn't working label Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants