Fix resource leak in error path of function sfload_file()

This commit is contained in:
Surabhi 2014-09-25 13:39:55 +02:00 committed by David Henningsson
parent 3e08eaea00
commit 4bbc44d22b

View file

@ -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;
}