free called on memory allocated by new
rcrandall opened this issue · comments
Robert Crandall commented
Line 56 in 154e2f7
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.