Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leak when a graph node is invalid. #54011

Merged
merged 1 commit into from
Jan 26, 2022
Merged

Fix memory leak when a graph node is invalid. #54011

merged 1 commit into from
Jan 26, 2022

Conversation

pranve
Copy link

@pranve pranve commented Jan 25, 2022

If a graph node is invalid but a kernel is created then we set the kernel back to nullptr but we forget to delete it. Hence, we get a memory leak.

PiperOrigin-RevId: 408968108
Change-Id: I1d8a9d0d8988ed5e08be8b9f2004ce1b4cd11b7c

If a graph node is invalid but a kernel is created then we set the kernel back to `nullptr` but we forget to delete it. Hence, we get a memory leak.

PiperOrigin-RevId: 408968108
Change-Id: I1d8a9d0d8988ed5e08be8b9f2004ce1b4cd11b7c
@mihaimaruseac mihaimaruseac merged commit 4f35138 into tensorflow:r2.5 Jan 26, 2022
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.

None yet

2 participants