aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-06-16 08:04:21 +0000
committerNick Clifton <nickc@redhat.com>2010-06-16 08:04:21 +0000
commit81efa4eed00bc6af13b4fb7b4fb3dca5def20e10 (patch)
treeca837019d235d79c7976bc0bf06ea3ba15f3a906
parent59e6276b64b1a3b248d851e5a3f5acd63e346399 (diff)
downloadgdb-81efa4eed00bc6af13b4fb7b4fb3dca5def20e10.zip
gdb-81efa4eed00bc6af13b4fb7b4fb3dca5def20e10.tar.gz
gdb-81efa4eed00bc6af13b4fb7b4fb3dca5def20e10.tar.bz2
* gmon_io.c (gmon_out_read): Remove double fclose of input file.
-rw-r--r--gprof/ChangeLog4
-rw-r--r--gprof/gmon_io.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 4370951..347ac07 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-15 Doug Semler <dougsemler@gmail.com>
+
+ * gmon_io.c (gmon_out_read): Remove double fclose of input file.
+
2010-06-08 Nick Clifton <nickc@redhat.com>
* gprof.texi (Sampling Error): Note that call counts and basic
diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c
index 1b046d4..fbb89f5 100644
--- a/gprof/gmon_io.c
+++ b/gprof/gmon_io.c
@@ -551,8 +551,6 @@ gmon_out_read (const char *filename)
cg_tally (from_pc, self_pc, count);
}
- fclose (ifp);
-
if (hz == HZ_WRONG)
{
/* How many ticks per second? If we can't tell, report