Explorar o código

Add a tor_free() in tor_gencert to fix a coverity warning

Nick Mathewson %!s(int64=5) %!d(string=hai) anos
pai
achega
8a0b741487
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/tools/tor-gencert.c

+ 1 - 0
src/tools/tor-gencert.c

@@ -190,6 +190,7 @@ parse_commandline(int argc, char **argv)
         fprintf(stderr, "%s must resolve to an IPv4 address", addr_arg);
         return 1;
       }
+      tor_free(address);
       address = tor_strdup(fmt_addrport(&addr, port));
     } else if (!strcmp(argv[i], "--create-identity-key")) {
       make_new_id = 1;