Skip to content

Conversation

@segayuu
Copy link
Contributor

@segayuu segayuu commented May 11, 2020

Fixed a bug that a resource leak occurs without being notified to readStream when a json parse error occurs in Database#load().
In hexojs/hexo#3975, this bug causes fs.unlink() to be called when Database#load() fails in the Windows environment, but it is not deleted immediately and an EPERM error occurs.

@segayuu segayuu added the bug label May 11, 2020
@segayuu segayuu requested review from SukkaW and curbengh May 11, 2020 11:30
@segayuu segayuu merged commit 3084e84 into master May 12, 2020
@segayuu segayuu deleted the Fix-bug-resource-leak branch May 12, 2020 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants