webfs: fix redirection mem/fd leak

This commit is contained in:
cinap_lenrek 2011-11-16 02:04:21 +01:00
parent 6332fddecd
commit ceae4e464d

View file

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