Skip to content

Commit 0ee460a

Browse files
committed
Fix memory leak in check snapshot unit test (was reported in the asan build).
Change-Id: I289e189afd5d27fd1ad230270a29d838dd6b77bd Reviewed-on: https://dart-review.googlesource.com/41905 Reviewed-by: Siva Annamalai <[email protected]> Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Siva Annamalai <[email protected]>
1 parent c9d1d87 commit 0ee460a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime/vm/snapshot_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,7 @@ VM_UNIT_TEST_CASE(CheckKernelSnapshot) {
18151815
FLAG_load_deferred_eagerly = saved_load_deferred_eagerly_mode;
18161816
bool is_kernel = Dart_IsDart2Snapshot(full_snapshot);
18171817
EXPECT_EQ(FLAG_strong, is_kernel);
1818+
free(full_snapshot);
18181819
}
18191820

18201821
#endif // !PRODUCT

0 commit comments

Comments
 (0)