You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2007/11/11 17:50:46 UTC
svn commit: r593927 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
Author: rjung
Date: Sun Nov 11 08:50:46 2007
New Revision: 593927
URL: http://svn.apache.org/viewvc?rev=593927&view=rev
Log:
We don't use uri_to_context after post_config, so we
can clean it up early.
Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593927&r1=593926&r2=593927&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:50:46 2007
@@ -2322,14 +2322,8 @@
we can't guarantee what order pools get cleaned
up between APR implementations. */
wc_close(NULL);
- if (conf->uri_to_context) {
- jk_map_free(&conf->uri_to_context);
- /* We cannot have allocated uw_map
- * unless we've allocated uri_to_context
- */
- if (conf->uw_map)
- uri_worker_map_free(&conf->uw_map, NULL);
- }
+ if (conf->uw_map)
+ uri_worker_map_free(&conf->uw_map, NULL);
conf->was_initialized = JK_FALSE;
}
s = s->next;
@@ -2818,6 +2812,7 @@
sconf->uri_to_context, sconf->log))
jk_error_exit(APLOG_MARK, APLOG_EMERG, srv,
srv->process->pool, "Memory error");
+ jk_map_free(&sconf->uri_to_context);
if (sconf->options & JK_OPT_REJECTUNSAFE)
sconf->uw_map->reject_unsafe = 1;
else
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org