ZJULearning / nsg

Navigating Spreading-out Graph For Approximate Nearest Neighbor Search
MIT License
621 stars 148 forks source link

Unnecessary deallocation #2

Closed 0Xellos closed 5 years ago

0Xellos commented 6 years ago

The command free(data); (index_nsg.cpp:465) deallocates an external argument. This serves no purpose in the class IndexNSG and complicates a code that relies on data later on.

I suggest removing it.

DelightRun commented 5 years ago

Fixed