Skip to content

Commit

Permalink
Fix rocSPARSE level_2 spsv example (#174)
Browse files Browse the repository at this point in the history
Fix memory leak due to temp_buffer not being freed
  • Loading branch information
MKKnorr authored Oct 16, 2024
1 parent d39e9c9 commit bcdd285
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
1 change: 1 addition & 0 deletions Libraries/rocSPARSE/level_2/spsv/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ int main()
ROCSPARSE_CHECK(rocsparse_destroy_dnvec_descr(descr_x));
ROCSPARSE_CHECK(rocsparse_destroy_dnvec_descr(descr_y));

HIP_CHECK(hipFree(temp_buffer));
HIP_CHECK(hipFree(d_x));
HIP_CHECK(hipFree(d_y));
HIP_CHECK(hipFree(d_coo_val));
Expand Down
29 changes: 0 additions & 29 deletions Libraries/rocSPARSE/level_3/csrsm/rocsparse-calls

This file was deleted.

0 comments on commit bcdd285

Please sign in to comment.