The shape array created at cnpy.cpp:80 was never delete-ed. Add a
delete[] call at cnpy.cpp:136 to address this. A better solution may be
to pass a std::vector<> reference to parse_npy_header().
Hey Rich, thanks for spotting this and letting me know! I'll update memory management soon (somone else submitted a PR a while ago for this that I should merge).
The shape array created at cnpy.cpp:80 was never delete-ed. Add a delete[] call at cnpy.cpp:136 to address this. A better solution may be to pass a std::vector<> reference to parse_npy_header().