cyclops-community / ctf

Cyclops Tensor Framework: parallel arithmetic on multidimensional arrays
Other
194 stars 53 forks source link

Memory leak in arange #120

Open timjbaer opened 3 years ago

timjbaer commented 3 years ago

I noticed a memory leak in Vector<dtype> arange. It can be fixed by adding the following two lines before return v:

delete [] vals;
free(inds);
return v;