aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerkeys.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-06-01 10:45:51 -0400
committerNick Mathewson <nickm@torproject.org>2015-06-01 10:45:51 -0400
commitfcc01d7cafef86dd3ef449e474b0ff7ca45cac85 (patch)
tree2a628d43204fa15dfbb447e51c9959548816b7f8 /src/or/routerkeys.c
parentd31877c6bf68c942b6c66bc7a59781d75a3dc3b5 (diff)
downloadtor-fcc01d7cafef86dd3ef449e474b0ff7ca45cac85.tar.gz
tor-fcc01d7cafef86dd3ef449e474b0ff7ca45cac85.zip
Fix a memory leak in routerkeys.c
Diffstat (limited to 'src/or/routerkeys.c')
-rw-r--r--src/or/routerkeys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerkeys.c b/src/or/routerkeys.c
index 8b1ade599c..b17d1958f7 100644
--- a/src/or/routerkeys.c
+++ b/src/or/routerkeys.c
@@ -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",