Skip to content

Commit e248d63

Browse files
committed
fix(oidc): free authenticate_with_idp result after use
1 parent 5d965f8 commit e248d63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ctanker.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,8 @@ impl CTankerLib {
586586
let c_state = unsafe { CStr::from_ptr(cresult.state) };
587587
let state = c_state.to_str().unwrap().into();
588588

589+
unsafe { tanker_call!(self, tanker_free_authenticate_with_idp_result(cresult)) }
590+
589591
Ok(crate::Verification::OIDCAuthorizationCode {
590592
provider_id: provider_id.to_str().unwrap().into(),
591593
authorization_code,

0 commit comments

Comments
 (0)