cmu-db/bustub

Detected memory leaks comes from other immutable parts

Ingsuifon opened this issue · 0 comments

I try to commit P1 to GradeScope(Fall 2023), and the result show that:

==2623==ERROR: LeakSanitizer: detected memory leaks
10: 
10: Indirect leak of 20480 byte(s) in 5 object(s) allocated from:
10:     #0 0x558a8df4aafd in operator new[](unsigned long) (/autograder/source/bustub/build/test/grading_buffer_pool_manager_test+0x111afd) (BuildId: 7b0733f18548e9a24b66236885014622b05f7bb3)
10:     #1 0x558a8dff18d0 in bustub::Page::Page() /autograder/source/bustub/src/include/storage/page/page.h:35:13

Since the materials in submission don't contain the page.h, even if I change its implementation it doesn't help. So how can I solve this problem?