Re: pg_ctl infinite loop and memory leak - Mailing list pgsql-bugs

From Tom Lane
Subject Re: pg_ctl infinite loop and memory leak
Date
Msg-id 24368.1251859858@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_ctl infinite loop and memory leak  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-bugs
Jeff Davis <pgsql@j-davis.com> writes:
> On Tue, 2009-09-01 at 22:01 -0400, Tom Lane wrote:
>> Where's the memory leak?

> The xstrdup() on the zero-length string.

Oh, I see.  But actually, it's also clobbering memory like crazy (since
we'll run off the result[] array in no time).  Surprising it doesn't
crash from that.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Jeff Davis
Date:
Subject: Re: pg_ctl infinite loop and memory leak
Next
From: Tom Lane
Date:
Subject: Re: lost statistics; analyze needs to execute twice