Skip to content

Commit

Permalink
Passkey: Fix coverity RESOURCE_LEAK
Browse files Browse the repository at this point in the history
Fix for:

  CID 470374:  Resource leaks  (RESOURCE_LEAK)
  Variable "prompt_reply" going out of scope leaks the storage
  it points to.
  • Loading branch information
justin-stephenson committed Dec 11, 2023
1 parent e080776 commit 6ed342d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/krb5_plugin/passkey/passkey_clpreauth.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ sss_passkeycl_process(krb5_context context,
if (reply != NULL) {
free(reply);
}
if (prompt_reply != NULL) {
free(prompt_reply);
}
return ret;
}

Expand Down

0 comments on commit 6ed342d

Please sign in to comment.