Skip to content

Commit 33a5745

Browse files
sjindel-googlecommit-bot@chromium.org
authored andcommitted
[vm/ffi] Add missing free() to structs_test.dart
Fixes crash on ASAN bot. Change-Id: I70d0cc863b86c40d5c5c15841ecbbf2a91493e6c Cq-Include-Trybots: luci.dart.try:vm-kernel-asan-linux-release-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108273 Reviewed-by: Daco Harkes <[email protected]> Commit-Queue: Samir Jindel <[email protected]>
1 parent 1c9408f commit 33a5745

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ffi/structs_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,5 @@ void testTypeTest() {
116116
Coordinate c = Coordinate.allocate(10, 10, nullptr.cast<Coordinate>());
117117
Expect.isTrue(c is Struct);
118118
Expect.isTrue(c is Struct<Coordinate>);
119+
c.addressOf.free();
119120
}

0 commit comments

Comments
 (0)