Fix a memory leak in router_parse_addr_policy_item_from_string. CID 1324770

This commit is contained in:
Nick Mathewson 2015-09-22 09:55:05 -04:00
parent df0b4f0342
commit 6b6a714732

View File

@ -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;