mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Fix a memory leak in router_parse_addr_policy_item_from_string. CID 1324770
This commit is contained in:
parent
df0b4f0342
commit
6b6a714732
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user