Commit 9ab5fc3
[rocm-libraries] ROCm/rocm-libraries#6233 (commit a9a0519)
Fix memory leaks in rocRAND and hipRAND
## Motivation
Fixing memory leaks is good.
## Technical Details
Fixed assorted memory leaks in the rocRAND/hipRAND unit tests, and one
memory leak in mtgp32.hpp - the test code showed a pattern which could
cause rocRAND's mtgp32_generator_template to not free m_engines.
## Test Plan
Run unit tests to verify nothing is broken and leaks are gone.
## Test Result
Memory leaks no longer reported by ASAN.
## Submission Checklist
- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.1 parent 9ecd577 commit 9ab5fc3
File tree
2 files changed
+254
-152
lines changed- library/src/rng
- test/internal
2 files changed
+254
-152
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
369 | | - | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
381 | 387 | | |
382 | 388 | | |
383 | 389 | | |
384 | 390 | | |
| 391 | + | |
385 | 392 | | |
386 | 393 | | |
387 | 394 | | |
| |||
0 commit comments