Re: cbdata

From: Duane Wessels <wessels@dont-contact.us>
Date: Thu, 30 Nov 2000 12:59:27 -0700 (MST)

On Tue, 28 Nov 2000, Andres Kroonmaa wrote:

>
> Does anyone else besides me have a feeling that we leak memory
> (cbdata structs) inside squid 2.4?
>
> (modified cbdata_debug: age in secs, lastref in secs or 0 if never)
>
> 845f3b8 VALID 0 locks age: 157, lastref: 0, store_repl_heap.c:237
> 845f398 VALID 0 locks age: 184, lastref: 0, store_repl_heap.c:237
> 845f348 VALID 0 locks age: 213, lastref: 0, store_repl_heap.c:237
> 844f3b0 VALID 0 locks age: 272, lastref: 0, store_repl_heap.c:237

Maybe its this:

static int
storeUfsDirWriteCleanStart(...)
...
    state->walker = sd->repl->WalkInit(sd->repl);
    unlink(state->new);
    unlink(state->cln);
    state->fd = file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC);
    if (state->fd < 0)
        return -1; /* state not free'd - possible leak */
Received on Thu Nov 30 2000 - 12:59:29 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:01 MST