DescriptionFix 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 #
Messages
Total messages: 3 (0 generated)
|