Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 157566 Details for
Bug 245237
mod_python has a memory leak cause by PythonOption entries in config
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Upstream patch
mod_python-3.1.3-pythonoption_memleak.patch (text/plain), 2.92 KB, created by
Matthew Schick
on 2007-06-21 20:09:39 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
Matthew Schick
Created:
2007-06-21 20:09:39 UTC
Size:
2.92 KB
patch
obsolete
>--- httpd/mod_python/trunk/src/mod_python.c 2005/08/09 15:37:04 231054 >+++ httpd/mod_python/trunk/src/mod_python.c 2005/08/28 20:39:51 263916 >@@ -598,16 +598,35 @@ > return conf; > } > >+/* >+code begin >+*/ >+/** >+ ** modpython_table_overlap >+ ** >+ * Replaces the apr_table_overlap() function using a specific pool >+ * for the resulting table. >+ */ >+ >+static apr_table_t *modpython_table_overlap(apr_pool_t *p, >+ apr_table_t *current_table, >+ apr_table_t *new_table) >+{ >+ apr_table_t *merge = apr_table_overlay(p, current_table, new_table); >+ apr_table_compress(merge, APR_OVERLAP_TABLES_SET); >+ return merge; >+} >+ > /** > ** python_merge_dir_config > ** > */ > >-static void *python_merge_config(apr_pool_t *p, void *current_conf, >+static void *python_merge_config(apr_pool_t *p, void *current_conf, > void *new_conf) > { > >- py_config *merged_conf = >+ py_config *merged_conf = > (py_config *) apr_pcalloc(p, sizeof(py_config)); > py_config *cc = (py_config *) current_conf; > py_config *nc = (py_config *) new_conf; >@@ -622,20 +641,19 @@ > */ > > /** create **/ >- merged_conf->directives = apr_table_make(p, 4); >- merged_conf->options = apr_table_make(p, 4); > merged_conf->hlists = apr_hash_make(p); > merged_conf->in_filters = apr_hash_make(p); > merged_conf->out_filters = apr_hash_make(p); > >- /** copy current **/ >+ /** merge directives and options **/ >+ merged_conf->directives = modpython_table_overlap(p, cc->directives, >+ nc->directives); >+ merged_conf->options = modpython_table_overlap(p, cc->options, >+ nc->options); > >+ /** copy current **/ > merged_conf->authoritative = cc->authoritative; > merged_conf->config_dir = apr_pstrdup(p, cc->config_dir); >- apr_table_overlap(merged_conf->directives, cc->directives, >- APR_OVERLAP_TABLES_SET); >- apr_table_overlap(merged_conf->options, cc->options, >- APR_OVERLAP_TABLES_SET); > > for (hi = apr_hash_first(p, cc->hlists); hi; hi=apr_hash_next(hi)) { > apr_hash_this(hi, (const void **)&key, &klen, (void **)&hle); >@@ -659,11 +677,6 @@ > if (nc->config_dir) > merged_conf->config_dir = apr_pstrdup(p, nc->config_dir); > >- apr_table_overlap(merged_conf->directives, nc->directives, >- APR_OVERLAP_TABLES_SET); >- apr_table_overlap(merged_conf->options, nc->options, >- APR_OVERLAP_TABLES_SET); >- > for (hi = apr_hash_first(p, nc->hlists); hi; hi=apr_hash_next(hi)) { > apr_hash_this(hi, (const void**)&key, &klen, (void **)&hle); > apr_hash_set(merged_conf->hlists, key, klen, (void *)hle); >@@ -681,6 +694,11 @@ > > return (void *) merged_conf; > } >+ >+/* >+code end >+*/ >+ > > /** > ** python_directive
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245237
: 157566