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: 4909D24F.6020103@sun.com (view raw or flat)
Thread:
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


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


In response to

Responses

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-2014 The PostgreSQL Global Development Group