Skip to content

writeFile: avoid file leak on errors

Alan Coopersmith requested to merge alanc/fonttosfnt:plug-leak into master

Resolves issues found by Oracle Parfait 4.0 static analyser:

   File Leak [file-ptr-leak]:
      Leaked File out
        at line 337 of app/fonttosfnt/write.c in function 'writeFile'.
          out initialized at line 330 with fopen
   File Leak [file-ptr-leak]:
      Leaked File out
        at line 366 of app/fonttosfnt/write.c in function 'writeFile'.
          out initialized at line 330 with fopen

Signed-off-by: Alan Coopersmith alan.coopersmith@oracle.com

Edited by Alan Coopersmith

Merge request reports