]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
driver-arm.c (host_detect_local_cpu): Close the file before exiting.
authorAndrew Stubbs <ams@codesourcery.com>
Tue, 18 Oct 2011 20:33:00 +0000 (20:33 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Tue, 18 Oct 2011 20:33:00 +0000 (20:33 +0000)
2011-10-18  Andrew Stubbs  <ams@codesourcery.com>

gcc/
* config/arm/driver-arm.c (host_detect_local_cpu): Close the file
before exiting.

From-SVN: r180167

gcc/ChangeLog
gcc/config/arm/driver-arm.c

index 365eb94f0311012335b137da3365c21db6f04d79..2dc4ba2ee4a459aa83dfc894f7417461d72fd383 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
+
+       * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
+       before exiting.
+
 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
 
        PR tree-optimization/50717
index 43b6e581fbe35e699ca0d3199f7ee0c34c0dc9b6..c7ca4faa37f9fd4b34381954efb32407d5bdfa79 100644 (file)
@@ -134,6 +134,9 @@ not_found:
     unsigned int i;
     unsigned int opt;
     const char *search[] = {NULL, "arch"};
+
+    fclose (f);
+
     search[0] = argv[0];
     for (opt = 0; opt < ARRAY_SIZE (search); opt++)
       for (i = 0; i < ARRAY_SIZE (configure_default_options); i++)