]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
read.c (blkid_read_cache): Add missing fclose() which was
authorTheodore Ts'o <tytso@mit.edu>
Sat, 15 May 2004 21:27:43 +0000 (17:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 15 May 2004 21:27:43 +0000 (17:27 -0400)
causing a memory and file descriptor leak.  Thanks to
magnus.fromreide at teligent.se.

lib/blkid/ChangeLog
lib/blkid/read.c

index 6828c05742c864c2a59db92fddf246142e472c98..8fe0462e9c39a64e5ee85a20749d67c54f5ee069 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-12  Theodore Ts'o  <tytso@mit.edu>
+
+       * read.c (blkid_read_cache): Add missing fclose() which was
+               causing a memory and file descriptor leak.  Thanks to
+               magnus.fromreide at teligent.se.
+
 2004-04-19  Theodore Ts'o  <tytso@mit.edu>
 
        * probe.c (blkid_verify_devname): If the time is earlier than the
index 0a8e3f3c901dad7353e4f4cad210bce20fd66bee..358554cb514197e02f0d1b88c30e2a502e6b2468 100644 (file)
@@ -422,6 +422,8 @@ void blkid_read_cache(blkid_cache cache)
                        continue;
                }
        }
+       fclose(file);
+
        /*
         * Initially we do not need to write out the cache file.
         */