Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RPP handle mem leaks Fix#475

Merged
r-abishek merged 1 commit intor-abishek:ar/bugfix_handlefrom
HazarathKumarM:handle_changes
Aug 20, 2025
Merged

RPP handle mem leaks Fix#475
r-abishek merged 1 commit intor-abishek:ar/bugfix_handlefrom
HazarathKumarM:handle_changes

Conversation

@HazarathKumarM
Copy link
Collaborator

No description provided.

@r-abishek r-abishek changed the base branch from develop to ar/bugfix_handle August 20, 2025 15:13
@r-abishek r-abishek requested a review from Copilot August 20, 2025 15:14
@r-abishek r-abishek added the bugfix Something isn't working label Aug 20, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes memory leaks in the RPP (ROCm Performance Primitives) library by properly deallocating handle objects and their internal implementation pointers. The changes ensure that both the internal handle implementation and the handle object itself are properly cleaned up during destruction.

  • Adds proper cleanup of internal handle implementation pointer in destroy functions
  • Modifies the public API to delete the handle object after cleanup
  • Ensures consistent cleanup behavior across different backend types

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/modules/handle_host.cpp Adds deletion of internal handle and nullifies implementation pointer
src/modules/handle_hip.cpp Adds deletion of internal handle and nullifies implementation pointer
src/modules/handle_api.cpp Modifies public API to delete handle object and return success status directly

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@r-abishek r-abishek merged commit a327a97 into r-abishek:ar/bugfix_handle Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants