Commit 3685280
[rocm-libraries] ROCm/rocm-libraries#6251 (commit 697eff7)
[rocThrust] Fix memory leak in binary search test
## Motivation
This commit fixes a memory leak in binary_search.hip.
## Technical Details
The test was was missing a delete[] for a host-side allocation.
## Test Plan
Build binary_search.hip with ASAN enabled. Run the test and verify that
no leaks are reported.
## Test Result
No leaks are reported with the fix in my local testing.
## Submission Checklist
- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.1 parent a09b001 commit 3685280
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
0 commit comments