[libc-commits] [libc] [llvm] [libc] Release stream buffers with delete[] and stop reallocating them (PR #237127)
Mike Lothian via libc-commits
libc-commits at lists.llvm.org
Fri Oct 30 01:31:04 PDT 2026
FireBurn wrote:
No, I did not get a sanitizer report. I read the code, saw `new[]` paired with `delete` and `realloc`, and wrote the description as if a sanitizer would flag it, which I should not have claimed without running one. You are right that `AllocChecker` allocates with `malloc` and that both `operator delete` and `operator delete[]` call `free`, so the mixing is deliberate and the `realloc` is a sensible use of it. There is no bug here, so I am closing this. The size zero question stays on #236517
https://github.com/llvm/llvm-project/pull/237127
More information about the libc-commits
mailing list