commit | 3b5dfd01c0ebee35724a44430e424596a9a98c12 | [log] [tgz] |
---|---|---|
author | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Fri Mar 30 03:42:24 2012 +0900 |
committer | Qijiang Fan <fqj@google.com> | Thu Jun 04 12:37:13 2020 +0900 |
tree | d3f1a0d47ae9d542e2f86e6d3db78bf832fb4cdc | |
parent | 49a6958f4b215314048c776d597f665a26d39c84 [diff] |
[Coverity] Fix possible leak. If the first open returns a file handle of 0, it could be leaked (if PLATFORM_FILE_OPEN_ALWAYS is set too) In general, fixed so that file handle of 0 is treated as a file handle, not as error code. CID=101981 BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9873005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129659 0039d316-1c4b-4281-b951-d872f2087c98 CrOS-Libchrome-Original-Commit: 4a3b533fd6992cfef6520abc714a6ac6c3461910