Skip to content

Commit e423b5a

Browse files
authored
[SYCL] Fix memory leak (#11223)
Add free calls to avoid memory leaks Signed-off-by: Byoungro So <[email protected]>
1 parent ebd598a commit e423b5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sycl/test-e2e/KernelFusion/sync_two_queues_event_dep.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ int main() {
7777
for (size_t i = 0; i < dataSize; ++i) {
7878
assert(out[i] == (40 * i * i) && "Computation error");
7979
}
80-
80+
sycl::free(in1, q1);
81+
sycl::free(in2, q1);
82+
sycl::free(in3, q1);
83+
sycl::free(tmp, q1);
84+
sycl::free(out, q1);
8185
return 0;
8286
}
8387

0 commit comments

Comments
 (0)