Fix a memory leak spotted by cppcheck.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1168 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-11-11 15:39:53 +00:00
parent 395c225463
commit 7283412da2
2 changed files with 3 additions and 0 deletions

View File

@@ -428,6 +428,7 @@ int Save_INI(T_Config * conf)
if (Ancien_fichier==0)
{
fclose(Ancien_fichier);
free(buffer);
return ERROR_INI_MISSING;
}
Nouveau_fichier=fopen(filename,"wb");