-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
src: fix alloc-dealloc-mismatch in node_snapshotable.h #37443
src: fix alloc-dealloc-mismatch in node_snapshotable.h #37443
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but would like @joyeecheung to sign off also
97f543c
to
3789d14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see why there is a mismatch, but I guess whatever makes the linter happy...although this isn't a homogeneous array block, it's more like a block of memory whose layout is manually controlled by us since they are meant to be written as-is in blocks
@joyeecheung This was happening since the array was being allocated using
Do you think it would be more appropriate to convert the delete[] calls to delete calls instead of this fix?
|
@RaisinTen I see, we should use |
Test failures don't seem to be related to this patch. |
Fixes: #37442 PR-URL: #37443 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Landed in 954d911 |
Fixes: #37442 PR-URL: #37443 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Fixes: #37442