Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent memory leak when writing before ready #183

Merged

Conversation

rluvaton
Copy link
Contributor

@rluvaton rluvaton commented Oct 5, 2023

while trying to add a callback function to flush in pino I got into a situation where I logged and flushed before the file was ready so the cb never got called

@rluvaton
Copy link
Contributor Author

rluvaton commented Oct 5, 2023

I just noticed that the branch name has nothing to do with the fix 😅

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rluvaton
Copy link
Contributor Author

rluvaton commented Oct 5, 2023

let's merge this so I can continue working on pino flush?

(don't forget hacktoberfest 😅 I need some shirts 😂 )

@mcollina mcollina merged commit f43965c into pinojs:master Oct 5, 2023
10 checks passed
@rluvaton rluvaton deleted the fix-file-descriptor-in-middle-of-open-flush branch October 5, 2023 20:46
@rluvaton
Copy link
Contributor Author

rluvaton commented Oct 7, 2023

Can you please release that so pinojs/pino#1827 can be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants