#807: Removed double fclose of prof_file
authorIan Lynagh <igloo@earth.li>
Sat, 8 Jul 2006 15:24:24 +0000 (15:24 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 8 Jul 2006 15:24:24 +0000 (15:24 +0000)
prof_file was being fclose'd in both gen_XML_logfile and hs_exit, leading
to glibc complaining of a double free.

rts/Profiling.c

index 33301a9..96a94e4 100644 (file)
@@ -882,8 +882,6 @@ gen_XML_logfile( void )
   reportCCS_XML(pruneCCSTree(CCS_MAIN));
 
   fprintf(prof_file, " 0\n");
-
-  fclose(prof_file);
 }
 
 static void