projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
folly: avoid ASAN-detected new[] vs "delete" mismatch
[folly.git]
/
folly
/
test
/
PackedSyncPtrTest.cpp
diff --git
a/folly/test/PackedSyncPtrTest.cpp
b/folly/test/PackedSyncPtrTest.cpp
index bb1ebc85304b8caa66741ee810d6c59705b761f4..5c75354df1c0e369e1fa5c18091d284886ce473d 100644
(file)
--- a/
folly/test/PackedSyncPtrTest.cpp
+++ b/
folly/test/PackedSyncPtrTest.cpp
@@
-53,7
+53,7
@@
TEST(PackedSyncPtr, Basic) {
sp.setExtra(0x13);
EXPECT_EQ(sp.extra(), 0x13);
EXPECT_EQ((sp.get() + 1)->second, 7);
- delete sp.get();
+ delete
[]
sp.get();
auto newP = new std::pair<int,int>();
sp.set(newP);
EXPECT_EQ(sp.extra(), 0x13);