Skip to content

Commit

Permalink
fixing memory leak in hybmv sample (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrost57 authored Sep 27, 2024
1 parent 423942a commit 0321f0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clients/samples/example_hybmv.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* ************************************************************************
* Copyright (C) 2018-2019 Advanced Micro Devices, Inc. All rights Reserved.
* Copyright (C) 2018-2024 Advanced Micro Devices, Inc. All rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -161,5 +161,9 @@ int main(int argc, char* argv[])
hipsparseDestroyMatDescr(descrA);
hipsparseDestroy(handle);

// Clean up
hipFree(dx);
hipFree(dy);

return 0;
}

0 comments on commit 0321f0b

Please sign in to comment.