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
commiteeb1ab0110cb7bb9aa9af4c21e0ee4c91758727b (patch)
tree777de6ebf83690ca4c169562c9e079420244e5d9 /gprof/source.c
parent9cc84e86500217bfe5353eefe582ea50bde8374e (diff)
downloadbinutils-redhat-eeb1ab0110cb7bb9aa9af4c21e0ee4c91758727b.tar.gz
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;
}