Skip site navigation (1) Skip section navigation (2)

Re: BUG #4496: Memory leak in pg_dump.c?

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: dvice_null(at)yahoo(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4496: Memory leak in pg_dump.c?
Date: 2008-10-30 15:27:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
dvice_null(at)yahoo(dot)com napsal(a):
> The following bug has been logged online:
> Bug reference:      4496
> Logged by:          
> Email address:      dvice_null(at)yahoo(dot)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 Kotala              Sun Microsystems
Prague, Czech Republic

In response to


pgsql-bugs by date

Next:From: AggroDate: 2008-10-30 19:51:46
Subject: Re: BUG #4496: Memory leak in pg_dump.c?
Previous:From: Zdenek KotalaDate: 2008-10-30 14:46:14
Subject: Re: Upgrade from 7.4.5 to 8.3.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group