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

Commit f498cc5

Browse files
authored
[SYCL] Fix memory leak in slm_alloc.cpp (#1565)
* [SYCL] Fix memory leak in slm_alloc.cpp Signed-off-by: Byoungro So <[email protected]>
1 parent ed5e014 commit f498cc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SYCL/ESIMD/slm_alloc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ int main(void) {
181181
}
182182
}
183183
}
184+
free(arr, ctxt);
184185
std::cout << (err_cnt ? "FAILED\n" : "Passed\n");
185186
return err_cnt ? 1 : 0;
186187
}

0 commit comments

Comments
 (0)