[#1404] fclose() instead of free() tmpfile() output