Skip to content

Commit

Permalink
authentic: Avoid memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed Nov 13, 2023
1 parent 780e707 commit aa82a34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pkcs15init/pkcs15-authentic.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ authentic_pkcs15_create_key(struct sc_profile *profile, struct sc_pkcs15_card *p
if (sdo == NULL || sdo->file != file_p_prvkey)
sc_file_free(file_p_prvkey);
authentic_free_sdo_data(sdo);
free(sdo);
LOG_FUNC_RETURN(ctx, rv);
}

Expand Down

0 comments on commit aa82a34

Please sign in to comment.