Skip to content

downlink: free stored encrypted_block after buf_alloc returns NULL#244

Merged
szczys merged 1 commit into
mainfrom
szczys/downlink-buf-free
Jun 24, 2026
Merged

downlink: free stored encrypted_block after buf_alloc returns NULL#244
szczys merged 1 commit into
mainfrom
szczys/downlink-buf-free

Conversation

@szczys

@szczys szczys commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

avoid memory leak by freeing stored encrypted_block pointer before returning from new buffer allocation failure.

avoid memory leak by freeing stored encrypted_block pointer before
returning from new buffer allocation failure.

Signed-off-by: Mike Szczys <michael.szczys@canonical.com>
@szczys szczys merged commit 5f112fa into main Jun 24, 2026
24 checks passed
@szczys szczys deleted the szczys/downlink-buf-free branch June 24, 2026 16:02
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