From eeb1ab0110cb7bb9aa9af4c21e0ee4c91758727b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 9 Oct 2013 16:34:30 +0000 Subject: PR gprof/16027 * source.c (annotate_source): Close ifp. * corefile.c (read_function_mappings): Close file. --- gprof/source.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gprof/source.c') 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; } -- cgit v1.2.1