fixed missing free() errors

This commit is contained in:
Thomas von Dein
2016-10-25 22:07:08 +02:00
parent 918fa997f9
commit 48947064bf
2 changed files with 5 additions and 1 deletions

View File

@@ -646,6 +646,7 @@ Buffer *pcp_export_rfc_pub (PCPCTX *ptx, pcp_key_t *sk) {
free(hash);
memset(sig, 0, crypto_sign_BYTES + crypto_generichash_BYTES_MAX);
free(sig);
free(st);
if(out->end < 32)
fatal(ptx, "failed to export public key");