Re: [HACKERS] Small psql memory fix

2014-02-14 Thread Bruce Momjian
On Fri, Feb 14, 2014 at 11:52:42PM -0500, Tom Lane wrote: > Bruce Momjian writes: > > On Fri, Feb 14, 2014 at 11:28:49PM -0500, Tom Lane wrote: > >> The first and third hunks look to me like they introduce memory > >> leaks, not fix them. The second hunk is probably safe enough, > > > The first

Re: [HACKERS] Small psql memory fix

2014-02-14 Thread Tom Lane
Bruce Momjian writes: > On Fri, Feb 14, 2014 at 11:28:49PM -0500, Tom Lane wrote: >> The first and third hunks look to me like they introduce memory >> leaks, not fix them. The second hunk is probably safe enough, > The first and third just move the free into blocks where we have already > teste

Re: [HACKERS] Small psql memory fix

2014-02-14 Thread Bruce Momjian
On Fri, Feb 14, 2014 at 11:28:49PM -0500, Tom Lane wrote: > Bruce Momjian writes: > > The attached tiny patch fixes a small leak in psql's \gset command and > > simplifies memory freeing in two places. > > The first and third hunks look to me like they introduce memory > leaks, not fix them. The

Re: [HACKERS] Small psql memory fix

2014-02-14 Thread Tom Lane
Bruce Momjian writes: > The attached tiny patch fixes a small leak in psql's \gset command and > simplifies memory freeing in two places. The first and third hunks look to me like they introduce memory leaks, not fix them. The second hunk is probably safe enough, although I'm not sure the case c