Browse Source

Free f_prog_log on error in MakeVowelLists.

master
Reece H. Dunn 9 years ago
parent
commit
66eaac1d6c
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/vowelchart.cpp

+ 3
- 0
src/vowelchart.cpp View File

ix = GetFileLength(fname); ix = GetFileLength(fname);
prog_log_table = (PHONEME_PROG_LOG *)malloc(ix); prog_log_table = (PHONEME_PROG_LOG *)malloc(ix);
if(prog_log_table == NULL) if(prog_log_table == NULL)
{
fclose(f_prog_log);
return; return;
}
ix = fread(prog_log_table, 1, ix, f_prog_log); ix = fread(prog_log_table, 1, ix, f_prog_log);
fclose(f_prog_log); fclose(f_prog_log);
n_prog_log = ix / sizeof(PHONEME_PROG_LOG); n_prog_log = ix / sizeof(PHONEME_PROG_LOG);

Loading…
Cancel
Save