mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fix a small overallocation of memory.
This commit is contained in:
parent
f6d8617360
commit
86622fbd62
@ -224,7 +224,7 @@ image **load_alphabet()
|
||||
{
|
||||
int i, j;
|
||||
const int nsize = 8;
|
||||
image **alphabets = calloc(nsize, sizeof(image));
|
||||
image **alphabets = calloc(nsize, sizeof(image*));
|
||||
for(j = 0; j < nsize; ++j){
|
||||
alphabets[j] = calloc(128, sizeof(image));
|
||||
for(i = 32; i < 127; ++i){
|
||||
|
Loading…
Reference in New Issue
Block a user