Hello,
I've patched my 1.38 version to fix a small memory leak on the linked list
(uri_auths) used by the
protected_uri feature .
Attached the "ported" patch against the cvs head version.
Best regards and thank you again for your work.
Gaƫl Chardon.
P.S. The 1.16 commit (keep-alive fix) seems to have broken something under
windows (FF2 and IE7), the
browser is waiting for some "ack" and only render the page after a timeout
or if the user "stops" the
request.
Index: shttpd.c
===================================================================
RCS file: /cvsroot/shttpd/shttpd/src/shttpd.c,v
retrieving revision 1.17
diff -u -r1.17 shttpd.c
--- shttpd.c 5 Jan 2008 13:04:44 -0000 1.17
+++ shttpd.c 9 Jan 2008 17:18:43 -0000
@@ -1151,6 +1151,16 @@
}
static void
+protected_uri_destructor(struct llhead *lp)
+{
+ struct uri_auth *auth = LL_ENTRY(lp, struct uri_auth, link);
+
+ free((void *) auth->file_name);
+ free((void *) auth->uri);
+ free(auth);
+}
+
+static void
acl_destructor(struct llhead *lp)
{
struct acl *acl = LL_ENTRY(lp, struct acl, link);
@@ -1166,6 +1176,7 @@
free_list(&ctx->mime_types, mime_type_destructor);
free_list(&ctx->connections, disconnect);
free_list(&ctx->registered_uris, registered_uri_destructor);
+ free_list(&ctx->uri_auths, protected_uri_destructor);
free_list(&ctx->acl, acl_destructor);
free_list(&listeners, listener_desctructor);
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general