Skip to content

Conversation

@songgot
Copy link
Contributor

@songgot songgot commented Dec 1, 2025

  • This change replaces g_free with g_clear_pointer for struct members to ensure pointers are set to NULL after freeing.
  • Local variables are excluded from this change.

@songgot songgot marked this pull request as draft December 1, 2025 06:14
@songgot songgot changed the title Prevent dangling pointer references after _ml_tensors_data_destroy_internal calls Replace g_free with g_clear_pointer to prevent dangling pointers Dec 1, 2025
@songgot songgot marked this pull request as ready for review December 1, 2025 07:35
- This change replaces g_free with g_clear_pointer for struct members
  to ensure pointers are set to NULL after freeing.
- Local variables are excluded from this change.

Signed-off-by: hyunil park <hyunil46.park@samsung.com>
@myungjoo myungjoo merged commit 85df469 into nnstreamer:main Dec 5, 2025
11 checks passed
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.

3 participants