Fixed recent memory leak for Classifier

This commit is contained in:
AlexeyAB
2019-11-14 14:14:54 +03:00
parent f42923350b
commit 509ba13acf

View File

@ -168,6 +168,7 @@ matrix load_image_augment_paths(char **paths, int n, int use_flip, int min, int
//printf("w = %d, h = %d \n", sized.w, sized.h);
free_image(im);
free_image(crop);
X.vals[i] = sized.data;
X.cols = sized.h*sized.w*sized.c;
}