]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Convince coverity that we do not have a particular memory leak
authorNick Mathewson <nickm@torproject.org>
Sun, 13 Sep 2015 18:44:46 +0000 (14:44 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 13 Sep 2015 18:44:46 +0000 (14:44 -0400)
src/or/routerkeys.c

index 1120578c282505449c9dd52ea5b529e4881de9b6..f7c65c21b5bb0083346b02b1920d47680bca7c5e 100644 (file)
@@ -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) {