File resource leak fixed in microfrontend/lib/frontend_main.c
This commit is contained in:
parent
f620112d44
commit
6ffb19ff9c
@ -44,6 +44,7 @@ int main(int argc, char** argv) {
|
||||
if (audio_file_size !=
|
||||
fread(audio_data, sizeof(int16_t), audio_file_size, fp)) {
|
||||
fprintf(stderr, "Failed to read in all audio data\n");
|
||||
fclose(fp);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -65,5 +66,6 @@ int main(int argc, char** argv) {
|
||||
|
||||
FrontendFreeStateContents(&frontend_state);
|
||||
free(original_audio_data);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user