commit a444b11323799536b4cd7902e29f711b0806293a Author: Nick Mathewson nickm@torproject.org Date: Sun Sep 13 14:44:46 2015 -0400
Convince coverity that we do not have a particular memory leak --- src/or/routerkeys.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/or/routerkeys.c b/src/or/routerkeys.c index 1120578..f7c65c2 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) {
tor-commits@lists.torproject.org