Fixed warning, freeing tpm context memory in extend_pcr function