Skip to content
Snippets Groups Projects
Commit 25617b18 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

dnsproxy: fixed leak

parent aad71287
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,7 @@ int dnsproxy_load(struct query_plan *plan, struct query_module *self)
int ret = sockaddr_set(&proxy->remote.addr, family, self->param, 53);
if (ret != KNOT_EOK) {
MODULE_ERR("invalid proxy address: '%s'", self->param);
mm_free(self->mm, proxy);
return KNOT_EINVAL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment