From 0321f0b4fab951ad8c74096b2f32b6c4c7453a5d Mon Sep 17 00:00:00 2001 From: Nico <31079890+ntrost57@users.noreply.github.com> Date: Fri, 27 Sep 2024 08:36:15 +0200 Subject: [PATCH] fixing memory leak in hybmv sample (#526) --- clients/samples/example_hybmv.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clients/samples/example_hybmv.cpp b/clients/samples/example_hybmv.cpp index cda7f23a..a1656995 100644 --- a/clients/samples/example_hybmv.cpp +++ b/clients/samples/example_hybmv.cpp @@ -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 @@ -161,5 +161,9 @@ int main(int argc, char* argv[]) hipsparseDestroyMatDescr(descrA); hipsparseDestroy(handle); + // Clean up + hipFree(dx); + hipFree(dy); + return 0; }