diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-09-13 14:44:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-09-13 14:44:46 -0400 |
commit | a444b11323799536b4cd7902e29f711b0806293a (patch) | |
tree | 06c6124bcfb39647cb73b423b3e8cf4b55c4db90 | |
parent | 8b981725798880a8bc8b1bee638e4285ffb7fe5a (diff) | |
download | tor-a444b11323799536b4cd7902e29f711b0806293a.tar.gz tor-a444b11323799536b4cd7902e29f711b0806293a.zip |
Convince coverity that we do not have a particular memory leak
-rw-r--r-- | src/or/routerkeys.c | 1 |
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) { |