Skip to content

Commit c9f5f7a

Browse files
bso-intelbb-sycl
authored andcommitted
[SYCL] Fix memory leak in slm_alloc.cpp (intel#1565)
* [SYCL] Fix memory leak in slm_alloc.cpp Signed-off-by: Byoungro So <[email protected]>
1 parent c2df719 commit c9f5f7a

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)