Re: pg_ctl infinite loop and memory leak

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_ctl infinite loop and memory leak
Date: 2009-09-02 02:38:08
Message-ID: 1251859088.31412.336.camel@monkey-cat.sm.truviso.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, 2009-09-01 at 22:01 -0400, Tom Lane wrote:
> Huh, interesting corner case. I'd be inclined to fix by initializing
> maxlength to 1 though.
>
> Where's the memory leak?

The xstrdup() on the zero-length string.

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-09-02 02:50:58 Re: pg_ctl infinite loop and memory leak
Previous Message Tom Lane 2009-09-02 02:01:31 Re: pg_ctl infinite loop and memory leak