mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
Fix resource leak in error path of function sfload_file()
This commit is contained in:
parent
3e08eaea00
commit
4bbc44d22b
1 changed files with 1 additions and 0 deletions
|
@ -2010,6 +2010,7 @@ sfload_file (const char * fname)
|
|||
if (!(sf = FLUID_NEW (SFData)))
|
||||
{
|
||||
FLUID_LOG(FLUID_ERR, "Out of memory");
|
||||
fclose(fd);
|
||||
err = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue