microsoft / DiskANN

Graph-structured Indices for Scalable, Fast, Fresh and Filtered Approximate Nearest Neighbor Search
Other
1.06k stars 214 forks source link

[BUG] #581

Open gaokun2 opened 2 weeks ago

gaokun2 commented 2 weeks ago

Expected Behavior

SSDQueryScratch object deconstruct normally.

Actual Behavior

SSDQueryScratch object deconstruct abnormally.

Additional Details

After running diskann::build_disk_index function, AddressSanitizer tool tells me "alloc-dealloc-mismatch (operator new vs operator delete [])".Code in scratch.cpp shows that SSDQueryScratch creates PQScratc by new operator with releasing it by delete[] operator(line 105, line 120). Is phenomenon normal or just some small code typos?