mirror of https://github.com/AlexeyAB/darknet.git
Don't free resized image if it's a reference
Fixes: a95bc3f5b6
Signed-off-by: Juuso Alasuutari <juuso.alasuutari@gmail.com>
This commit is contained in:
parent
1f6a6cd71c
commit
5691b812b4
|
@ -862,9 +862,13 @@ void predict_classifier(char *datacfg, char *cfgfile, char *weightfile, char *fi
|
|||
if(net.hierarchy) printf("%d, %s: %f, parent: %s \n",index, names[index], predictions[index], (net.hierarchy->parent[index] >= 0) ? names[net.hierarchy->parent[index]] : "Root");
|
||||
else printf("%s: %f\n",names[index], predictions[index]);
|
||||
}
|
||||
|
||||
free_image(cropped);
|
||||
if (resized.data != im.data) {
|
||||
free_image(resized);
|
||||
}
|
||||
free_image(im);
|
||||
free_image(resized);
|
||||
|
||||
if (filename) break;
|
||||
}
|
||||
free(indexes);
|
||||
|
|
Loading…
Reference in New Issue