#807: Removed double fclose of prof_file