mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Fix a memory leak in routerkeys.c
This commit is contained in:
parent
d31877c6bf
commit
fcc01d7caf
1 changed files with 1 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue