chrischoy / knn_cuda

Fast K-Nearest Neighbor search with GPU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

free called on memory allocated by new

rcrandall opened this issue · comments

free(activation);

Calling free on memory allocated by new results in undefined behavior, this is not safe. This should be replaced with
delete[] activation;
and similarly for the other locations where free is called.