about summary refs log tree commit diff
path: root/gmon
diff options
context:
space:
mode:
Diffstat (limited to 'gmon')
-rw-r--r--gmon/gmon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gmon/gmon.c b/gmon/gmon.c
index e8ad327937..d484ec2c9e 100644
--- a/gmon/gmon.c
+++ b/gmon/gmon.c
@@ -319,5 +319,8 @@ _mcleanup ()
     /* write basic-block execution counts: */
     write_bb_counts (fd);
 
+    /* free the memory. */
+    free (_gmonparam.tos);
+
     __close (fd);
 }