ref: ceae4e464d33f7965a796f7e6570ec40a5c892c7
parent: 6332fddecd0b9f14a2bc90ded47f7cf74dcb4f20
author: cinap_lenrek <[email protected]>
date: Tue Nov 15 21:04:21 EST 2011
webfs: fix redirection mem/fd leak
--- a/sys/src/cmd/webfs/client.c
+++ b/sys/src/cmd/webfs/client.c
@@ -133,6 +133,8 @@
werrstr("redirect to URL relative to current document");
goto Error;
}
+ if(c->url->close)
+ (*c->url->close)(c);
freeurl(c->url);
c->url = u;
}