apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Possible memory leak involved in ap_rflush and friends?
Date Thu, 17 Jul 2014 14:32:06 GMT

A user recently reported a problem with mod_jk leaking memory 8k at a
time when a certain option was enabled in the mod_jk configuration. He
included a "debugdiag" (some kinda Windows thing) trace of where memory
was being allocated and the trace goes from mod_jk into httpd/apr.

The code in mod_jk is pretty straightforward in the ws_flush function:

static void JK_METHOD ws_flush(jk_ws_service_t *s)
#if ! (defined(AS400) && !defined(AS400_UTF8))
    if (s && s->ws_private) {
        apache_private_data_t *p = s->ws_private;

apache_private_data_t->r is (somewhat obviously) a request_rec pointer.

Could someone take a look and see if anything looks fishy, either in the
way we're using this, or possibly if httpd/apr might be the cause? The
version or APR in question is 1.5.0.



View raw message