From: Theodore Ts'o Date: Sat, 15 May 2004 21:27:43 +0000 (-0400) Subject: read.c (blkid_read_cache): Add missing fclose() which was X-Git-Tag: E2FSPROGS-1_36~159 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b510f57f4f0bf52b59a6e745894e202a9addb97;p=thirdparty%2Fe2fsprogs.git read.c (blkid_read_cache): Add missing fclose() which was causing a memory and file descriptor leak. Thanks to magnus.fromreide at teligent.se. --- diff --git a/lib/blkid/ChangeLog b/lib/blkid/ChangeLog index 6828c0574..8fe0462e9 100644 --- a/lib/blkid/ChangeLog +++ b/lib/blkid/ChangeLog @@ -1,3 +1,9 @@ +2004-05-12 Theodore Ts'o + + * 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 * probe.c (blkid_verify_devname): If the time is earlier than the diff --git a/lib/blkid/read.c b/lib/blkid/read.c index 0a8e3f3c9..358554cb5 100644 --- a/lib/blkid/read.c +++ b/lib/blkid/read.c @@ -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. */