Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 5f4d951

Browse files
authored
[SYCL] fix memory leak (#705)
Signed-off-by: Byoungro So <[email protected]>
1 parent e87dcb0 commit 5f4d951

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SYCL/DeprecatedFeatures/get_backend.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ int main() {
6262

6363
unsigned char *HostAlloc = (unsigned char *)malloc_host(1, c);
6464
auto e = q.memset(HostAlloc, 42, 1);
65+
free(HostAlloc, c);
6566
if (e.get_backend() != plt.get_backend()) {
6667
return_fail();
6768
}

0 commit comments

Comments
 (0)