Skip to content

Commit 100a9c2

Browse files
authored
[SYCL] Fix memory leak (intel#1592)
The missing free calls caused memory leaks. Signed-off-by: Byoungro So <[email protected]>
1 parent a45a7c5 commit 100a9c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SYCL/GroupAlgorithm/SYCL2020/reduce_over_group_size.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,6 @@ int main() {
109109
printf("test failed!\n");
110110
}
111111
assert(fails == 0);
112-
}
112+
free(x, ctx);
113+
free(r, ctx);
114+
}

0 commit comments

Comments
 (0)