mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-01 14:30:37 +00:00
Use malloc/strdup instead of Alloc.
This commit is contained in:
@@ -231,7 +231,10 @@ int LoadDictionary(Translator *tr, const char *name, int no_error)
|
||||
return 1;
|
||||
}
|
||||
|
||||
tr->data_dictlist = Alloc(size);
|
||||
if ((tr->data_dictlist = malloc(size)) == NULL) {
|
||||
fclose(f);
|
||||
return 3;
|
||||
}
|
||||
size = fread(tr->data_dictlist, 1, size, f);
|
||||
fclose(f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user