(_mcleanup): Free tostruct array allocated in monstartup.
authordrepper <drepper>
Sun, 25 May 1997 01:23:18 +0000 (01:23 +0000)
committerdrepper <drepper>
Sun, 25 May 1997 01:23:18 +0000 (01:23 +0000)
gmon/gmon.c

index e8ad327..d484ec2 100644 (file)
@@ -319,5 +319,8 @@ _mcleanup ()
     /* write basic-block execution counts: */
     write_bb_counts (fd);
 
+    /* free the memory. */
+    free (_gmonparam.tos);
+
     __close (fd);
 }