[EMAIL PROTECTED] wrote:
>
> On Fri, May 07 1999 (07:28PM) Pierpaolo Fumagalli wrote:
> > We discovered a memory leak in mod_jserv, so in that part that gets
> > executed within Apache memory address space. AFAIK this has been solved
> > with a marvelous patch Jean-Luc submitted in the CVS, and was released
> > with JServ 1.0b4...
> >
> > On what version of JServ are you experiencing this problem?
>
> Thanks for the quick reply. We are using version 1.0b3.
> I take it that the patch is not necessary if we use version 1.0b4?
>
Just get the 1.0b4 (it's better :-)... But anyway, here's the patch...
Please test it and tell me if it fixes the thing or not...
Pier
> --- jserv/src/c/jserv_utils.c.old Wed Mar 24 05:20:56 1999
> +++ jserv/src/c/jserv_utils.c Wed Apr 14 13:59:23 1999
> @@ -256,7 +256,7 @@
> /* Log something to JServ log file thru argument list */
> void jserv_error_var(const char *file, int line, int level, jserv_config *cfg,
> const char *fmt, va_list ap) {
> - pool *p=ap_make_sub_pool(NULL);
> + pool *p;
> char *buf;
> int buflen;
>
> @@ -264,6 +264,7 @@
> /* If it's a debug level return */
> if (level==APLOG_DEBUG) return;
> #endif /* ifndef JSERV_DEBUG */
> + p=ap_make_sub_pool(NULL);
>
> /* Check if we have a valid configuration element */
> if (cfg!=NULL) {
--
-------------------------------------------------------------
Be sure to vote for JServ in the Java Developer's Journal
Readers' Choice Awards Category number 2 (Apache-JServ #24)
http://www.sys-con.com/java/readerschoice/nominationform.html
-------------------------------------------------------------
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]