mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
Free f_prog_log on error in MakeVowelLists.
This commit is contained in:
@@ -585,7 +585,10 @@ void MakeVowelLists(void)
|
||||
ix = GetFileLength(fname);
|
||||
prog_log_table = (PHONEME_PROG_LOG *)malloc(ix);
|
||||
if(prog_log_table == NULL)
|
||||
{
|
||||
fclose(f_prog_log);
|
||||
return;
|
||||
}
|
||||
ix = fread(prog_log_table, 1, ix, f_prog_log);
|
||||
fclose(f_prog_log);
|
||||
n_prog_log = ix / sizeof(PHONEME_PROG_LOG);
|
||||
|
||||
Reference in New Issue
Block a user