Fix mismatched-new-delete in memprof test_new_load_store.cpp and test_terse.cpp
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The memprof interceptor implementation unifies the logic for delete and delete[] and the size parameter passed to Deallocate is ignored [1]. Without memprof instrumentation this is undefined behaviour so updating it to the appropriate delete lgtm.
Comment Actions
Thanks @snehasish !
Can you commit this on my behalf cause I don't have commit access, thanks!
Comment Actions
Looks like @vitalybuka got to this before I did, thanks for committing the change and also thanks for the fix @Enna1 !