Fixed recent memory leak for Classifier

pull/4302/head
AlexeyAB 6 years ago
parent f42923350b
commit 509ba13acf
  1. 1
      src/data.c

@ -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); //printf("w = %d, h = %d \n", sized.w, sized.h);
free_image(im); free_image(im);
free_image(crop);
X.vals[i] = sized.data; X.vals[i] = sized.data;
X.cols = sized.h*sized.w*sized.c; X.cols = sized.h*sized.w*sized.c;
} }

Loading…
Cancel
Save