webfs: fix redirection mem/fd leak
This commit is contained in:
parent
6332fddecd
commit
ceae4e464d
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ clientbodyopen(Client *c, Req *r)
|
|||
werrstr("redirect to URL relative to current document");
|
||||
goto Error;
|
||||
}
|
||||
if(c->url->close)
|
||||
(*c->url->close)(c);
|
||||
freeurl(c->url);
|
||||
c->url = u;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue