mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 14:09:31 +03:00
Fix new[] / delete mismatch. #745
This commit is contained in:
parent
5fa620ac2c
commit
c6750c51ab
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ static void various_tests() {
|
|||
auto tbuf = new unsigned char[sizeof(Test)];
|
||||
t = new (tbuf) Test(42);
|
||||
t->~Test();
|
||||
delete tbuf;
|
||||
delete[] tbuf;
|
||||
}
|
||||
|
||||
class Static {
|
||||
|
|
Loading…
Add table
Reference in a new issue