Re: BUG #4496: Memory leak in pg_dump.c? - Mailing list pgsql-bugs

From Zdenek Kotala
Subject Re: BUG #4496: Memory leak in pg_dump.c?
Date
Msg-id 4909D24F.6020103@sun.com
Whole thread Raw
In response to BUG #4496: Memory leak in pg_dump.c?  ("" <dvice_null@yahoo.com>)
Responses Re: BUG #4496: Memory leak in pg_dump.c?  (Aggro <dvice_null@yahoo.com>)
List pgsql-bugs
dvice_null@yahoo.com napsal(a):
> The following bug has been logged online:
>
> Bug reference:      4496
> Logged by:
> Email address:      dvice_null@yahoo.com
> PostgreSQL version: Latest cvs
> Operating system:   Error in source code
> Description:        Memory leak in pg_dump.c?
> Details:
>
> In file src/bin/pg_dump/pg_dump.c:3741
>
> It seems like variables "constrinfo" and "indxinfo" leak memory e.g. at line
> 3741 and also on many other similar functions. If the memory is released
> somewhere I failed to find the location where it is released. So please
> either fix the leak if there is a leak or document better where the memory
> is released.
>

I think all information is collected and they are used for all pg_dump run. It
does not make sense to free them. See line 725.

        Zdenek


--
Zdenek Kotala              Sun Microsystems
Prague, Czech Republic     http://sun.com/postgresql

pgsql-bugs by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: Upgrade from 7.4.5 to 8.3.3
Next
From: "David E. Wheeler"
Date:
Subject: Re: ERROR: cache lookup failed for function 0