summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-09-13 14:44:46 -0400
committerNick Mathewson <nickm@torproject.org>2015-09-13 14:44:46 -0400
commita444b11323799536b4cd7902e29f711b0806293a (patch)
tree06c6124bcfb39647cb73b423b3e8cf4b55c4db90
parent8b981725798880a8bc8b1bee638e4285ffb7fe5a (diff)
downloadtor-a444b11323799536b4cd7902e29f711b0806293a.tar.gz
tor-a444b11323799536b4cd7902e29f711b0806293a.zip
Convince coverity that we do not have a particular memory leak
-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 1120578c28..f7c65c21b5 100644
--- a/src/or/routerkeys.c
+++ b/src/or/routerkeys.c
@@ -313,6 +313,7 @@ ed_key_init_from_file(const char *fname, uint32_t flags,
if (r > 0) {
have_secret = 1;
have_encrypted_secret_file = 1;
+ tor_free(got_tag); /* convince coverity we aren't leaking */
got_tag = tor_strdup(tag);
loaded_secret_fname = encrypted_secret_fname;
} else if (errno != ENOENT && norepair) {