Skip to content

Commit d2e5039

Browse files
JMouniertux3
authored andcommitted
fix(oidc): free OidcAutorizationCodeVerification after use
1 parent e75ec23 commit d2e5039

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

cffi_defs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ tanker_future_t* tanker_verify_provisional_identity(
432432
tanker_t* ctanker, tanker_verification_t const* verification);
433433

434434
tanker_expected_t* tanker_authenticate_with_idp(tanker_t* session, char const* provider_id, char const* cookie);
435+
void tanker_free_authenticate_with_idp_result(tanker_oidc_authorization_code_verification_t* result);
435436

436437
void tanker_free_buffer(void const* buffer);
437438

tankersdk/experimental.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ async def authenticate_with_idp(
2020

2121
authorization_code = ffihelpers.c_string_to_str(c_authorization_code)
2222
state = ffihelpers.c_string_to_str(c_state)
23+
24+
tankerlib.tanker_free_authenticate_with_idp_result(c_verification)
2325
return OidcAuthorizationCodeVerification(provider_id, authorization_code, state)

0 commit comments

Comments
 (0)