Skip to content

Commit 2027c94

Browse files
authored
[SYCL][E2E] Fix a leak in test (#17444)
Fix a leak in test.
1 parent 1d05d18 commit 2027c94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/test-e2e/DeprecatedFeatures/subbuffer_interop.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ int main() {
331331
std::cout << "On host: offset = " << host_acc[0] << std::endl;
332332
assert(host_acc[0] == 256 * 3 && "Invalid subbuffer origin");
333333
}
334+
335+
delete subbuf_copy;
334336
}
335337

336338
return Failed;

0 commit comments

Comments
 (0)