Fix a memory leak in routerkeys.c

This commit is contained in:
Nick Mathewson 2015-06-01 10:45:51 -04:00
parent d31877c6bf
commit fcc01d7caf

View File

@ -134,6 +134,7 @@ ed_key_init_from_file(const char *fname, uint32_t flags,
goto done;
/* Read a cert. */
tor_free(got_tag);
uint8_t certbuf[256];
ssize_t cert_body_len = crypto_read_tagged_contents_from_file(
cert_fname, "ed25519v1-cert",