Commit b07c6d71 authored by berak's avatar berak

fix missing delete[] calls in or_mnist.cpp

parent 5ec52d47
......@@ -84,6 +84,7 @@ void OR_mnistImp::loadDatasetPart(const string &imagesFile, const string &labels
fclose(f);
if (num*imageSize != res)
{
delete[] images;
return;
}
f = fopen(labelsFile.c_str(), "rb");
......@@ -93,6 +94,8 @@ void OR_mnistImp::loadDatasetPart(const string &imagesFile, const string &labels
fclose(f);
if (num != res)
{
delete[] images;
delete[] labels;
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment