Explorar o código

Fix a memory leak in routerkeys.c

Nick Mathewson %!s(int64=9) %!d(string=hai) anos
pai
achega
fcc01d7caf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/or/routerkeys.c

+ 1 - 0
src/or/routerkeys.c

@@ -134,6 +134,7 @@ ed_key_init_from_file(const char *fname, uint32_t flags,
     goto done;
 
   /* Read a cert. */
+  tor_free(got_tag);
   uint8_t certbuf[256];
   ssize_t cert_body_len = crypto_read_tagged_contents_from_file(
                  cert_fname, "ed25519v1-cert",