Commit 6b6a7147 authored by Nick Mathewson's avatar Nick Mathewson 🥔
Browse files

Fix a memory leak in router_parse_addr_policy_item_from_string. CID 1324770

parent df0b4f03
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3744,7 +3744,9 @@ router_parse_addr_policy_item_from_string,(const char *s, int assume_action,
             "exit policy. Ignoring, but continuing to parse rules. (Use "
             "accept/reject with IPv4 addresses.)",
             tok->n_args == 1 ? tok->args[0] : "");
    return NULL;
    addr_policy_free(r);
    r = NULL;
    goto done;
  }

  goto done;