Skip to content

Commit b8efe37

Browse files
authored
[test][libcxx] Update deallocation after #90373 (#93145)
Asan detects new/delete missmatch here after #90373.
1 parent 905b402 commit b8efe37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/test/std/utilities/utility/mem.res/mem.res.global/new_delete_resource.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void test_allocate_deallocate() {
7676
ASSERT_WITH_LIBRARY_INTERNAL_ALLOCATIONS(globalMemCounter.checkOutstandingNewEq(1));
7777
ASSERT_WITH_LIBRARY_INTERNAL_ALLOCATIONS(globalMemCounter.checkLastNewSizeEq(50));
7878

79-
r1.deallocate(ret, 1);
79+
r1.deallocate(ret, 50);
8080
assert(globalMemCounter.checkOutstandingNewEq(0));
8181
ASSERT_WITH_LIBRARY_INTERNAL_ALLOCATIONS(globalMemCounter.checkDeleteCalledEq(1));
8282
}

0 commit comments

Comments
 (0)