Skip to content

Commit 21f1d49

Browse files
committed
Add free hash here
1 parent fa3587d commit 21f1d49

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

examples/pcr/extend.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ int TPM2_PCR_Extend_Test(void* userCtx, int argc, char *argv[])
163163
XFCLOSE(fp);
164164
if (rc == 0)
165165
rc = wc_HashFinal(&dig, hashType, hash);
166+
wc_HashFree(&dig, hashType);
166167
if (rc != 0) {
167168
printf("Hash operation failed %d\n", rc);
168169
goto exit;

0 commit comments

Comments
 (0)