summaryrefslogtreecommitdiff
path: root/gprof/source.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-10-09 16:34:30 +0000
committerNick Clifton <nickc@redhat.com>2013-10-09 16:34:30 +0000
commit5af84f938a38bc6cb15271167aa0312b6800cf55 (patch)
tree98db5b4d066fdce1029e757eb8e7a00f9c653d50 /gprof/source.c
parentd9313f4f43f9bb23fb1ef3a93c4879c706d5e881 (diff)
PR gprof/16027
* source.c (annotate_source): Close ifp. * corefile.c (read_function_mappings): Close file.
Diffstat (limited to 'gprof/source.c')
-rw-r--r--gprof/source.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gprof/source.c b/gprof/source.c
index 1a445d3315..120e51ab98 100644
--- a/gprof/source.c
+++ b/gprof/source.c
@@ -1,6 +1,6 @@
/* source.c - Keep track of source files.
- Copyright 2000, 2001, 2002, 2004, 2007 Free Software Foundation, Inc.
+ Copyright 2000-2013 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -259,5 +259,6 @@ annotate_source (Source_File *sf, unsigned int max_width,
}
free (annotation);
+ fclose (ifp);
return ofp;
}