-
Notifications
You must be signed in to change notification settings - Fork 30k
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: perf_hooks: fix wrong sized delete #16898
Conversation
I have no idea how Coverity tracks these things but is this maybe the reason for https://github.com/ofrobots/node/blob/59a012aeb976347d6975c82fb376b5db41da146c/src/node_perf.cc#L217 ? Also, out of curiousity, on which systems was this noticeable? |
@addaleax At Google we use sized deletes, which caught this once we upgraded to 8 LTS. The coverity comment you point you to is possibly related to this, but /cc @bnoordhuis in case there was another reason to add it. |
Not the same thing. |
59a012a
to
f8ec929
Compare
Depending on the allocator, existing code leaks memory. PR-URL: nodejs#16898 Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Khaidi Chu <[email protected]>
f8ec929
to
d37789d
Compare
Landed as d37789d. |
Depending on the allocator, existing code leaks memory. PR-URL: #16898 Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Khaidi Chu <[email protected]>
Depending on the allocator, existing code leaks memory. PR-URL: #16898 Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Khaidi Chu <[email protected]>
Depending on the allocator, existing code leaks memory. PR-URL: #16898 Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Khaidi Chu <[email protected]>
Depending on the allocator, existing code leaks memory.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
src: perf_hooks
CI: https://ci.nodejs.org/job/node-test-pull-request/11318/