Skip to content

Fix destructors and add some constructors.#22

Open
devinamatthews wants to merge 1 commit intomainfrom
harden-interface
Open

Fix destructors and add some constructors.#22
devinamatthews wants to merge 1 commit intomainfrom
harden-interface

Conversation

@devinamatthews
Copy link
Collaborator

@devinamatthews devinamatthews commented Jul 2, 2025

Add constructors for TAPP_attr, TAPP_handle, and TAPP_executor. The latter make use of the former to provide context and configuration for construction. For all destructors, pass a pointer to the object handle so that it can be reset to NULL or another neutral value. This prevents double-free, use-after-free, etc.

Fixes #15.

Add constructors for TAPP_attr, TAPP_handle, and TAPP_executor. The latter make use of the former to provide context and configuration for construction. For all destructors, pass a pointer to the object handle so that it can be reset to NULL or another neutral value. This prevents double-free, use-after-free, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

safer TAPP_destroy_tensor_info

1 participant