mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed recent memory leak for Classifier
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user