Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 230513002: Fix leaking FD from readAs*Sync and writeAs*Sync. (Closed)

Created:
6 years, 8 months ago by Anders Johnsen
Modified:
6 years, 8 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix leaking FD from readAs*Sync and writeAs*Sync. If open was succesfull but the following read/write failed, we would fail to close the file. We now intercept the error (as we correctly do in the async case) and close the file before throwing the error to the user. BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=34868

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -17 lines) Patch
M sdk/lib/io/file_impl.dart View 2 chunks +23 lines, -17 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Anders Johnsen
6 years, 8 months ago (2014-04-09 09:38:10 UTC) #1
Søren Gjesse
lgtm
6 years, 8 months ago (2014-04-09 10:35:08 UTC) #2
Anders Johnsen
6 years, 8 months ago (2014-04-09 10:38:39 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r34868 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698