Skip to content

Ensure we only free the context when allocated#113

Merged
simo5 merged 1 commit into
gssapi:mainfrom
simo5:acc_del_ctx
Mar 2, 2026
Merged

Ensure we only free the context when allocated#113
simo5 merged 1 commit into
gssapi:mainfrom
simo5:acc_del_ctx

Conversation

@simo5

@simo5 simo5 commented Mar 2, 2026

Copy link
Copy Markdown
Member

Let the application deal with deleting the context if it passed us a valid one, this allows it to still extract some data from the contexrt, if needed, even on error, and the delete it.

If the function just created the context free it, as we do not want to return a potentially incomplete context on error.

Let the application deal with deleting the context if it passed us a
valid one, this allows it to still extract some data from the contexrt,
if needed, even on error, and the delete it.

If the function just created the context free it, as we do not want to
return a potentially incomplete context on error.

Signed-off-by: Simo Sorce <simo@redhat.com>
@simo5 simo5 mentioned this pull request Mar 2, 2026
@simo5 simo5 merged commit 3ed4e2d into gssapi:main Mar 2, 2026
12 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.

1 participant