Commits

Rich Wareham authored e210e16c49d
cnpy.cpp: fix memory leak in parsing shape field 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().