mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 07:29:30 +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)];
|
auto tbuf = new unsigned char[sizeof(Test)];
|
||||||
t = new (tbuf) Test(42);
|
t = new (tbuf) Test(42);
|
||||||
t->~Test();
|
t->~Test();
|
||||||
delete tbuf;
|
delete[] tbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Static {
|
class Static {
|
||||||
|
|
Loading…
Add table
Reference in a new issue