diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-10 21:40:52 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-10 21:40:52 +0000 |
commit | a89ca3ca54c3a74ec4e751b99104b5fd96b9e308 (patch) | |
tree | 92cbe1f5ffc493b7894d333c07b3eb901fd7705d /net/disk_cache | |
parent | 1ef501dd8484e9304d69153ad8c64a051f6f3a6c (diff) | |
download | chromium_src-a89ca3ca54c3a74ec4e751b99104b5fd96b9e308.zip chromium_src-a89ca3ca54c3a74ec4e751b99104b5fd96b9e308.tar.gz chromium_src-a89ca3ca54c3a74ec4e751b99104b5fd96b9e308.tar.bz2 |
Disk Cache: Make sure that file descriptors are valid before calling close().
BUG=71399
TEST=none
Review URL: http://codereview.chromium.org/6490007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74486 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r-- | net/disk_cache/file_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/disk_cache/file_posix.cc b/net/disk_cache/file_posix.cc index 740d108..087ff13 100644 --- a/net/disk_cache/file_posix.cc +++ b/net/disk_cache/file_posix.cc @@ -273,7 +273,7 @@ void File::WaitForPendingIO(int* num_pending_io) { } File::~File() { - if (platform_file_) + if (IsValid()) close(platform_file_); } |