aboutsummaryrefslogtreecommitdiff
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/corefile.c
parent PR ld/16028 (diff)
downloadbinutils-gdb-5af84f938a38bc6cb15271167aa0312b6800cf55.tar.gz
binutils-gdb-5af84f938a38bc6cb15271167aa0312b6800cf55.tar.bz2
binutils-gdb-5af84f938a38bc6cb15271167aa0312b6800cf55.zip
PR gprof/16027
* source.c (annotate_source): Close ifp. * corefile.c (read_function_mappings): Close file.
Diffstat (limited to 'gprof/corefile.c')
-rw-r--r--gprof/corefile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gprof/corefile.c b/gprof/corefile.c
index 0aabbadeba7..44184dc9d48 100644
--- a/gprof/corefile.c
+++ b/gprof/corefile.c
@@ -1,7 +1,6 @@
/* corefile.c
- Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009,
- 2010, 2011, 2012 Free Software Foundation, Inc.
+ Copyright 1999-2013 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -164,6 +163,8 @@ read_function_mappings (const char *filename)
symbol_map[i].is_first = 1;
qsort (symbol_map, symbol_map_count, sizeof (struct function_map), cmp_symbol_map);
+
+ fclose (file);
}
void