Skip to content

Commit

Permalink
Convince coverity that we do not have a particular memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Sep 13, 2015
1 parent 8b98172 commit a444b11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/or/routerkeys.c
Expand Up @@ -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) {
Expand Down

0 comments on commit a444b11

Please sign in to comment.