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

From Jeff Davis
Subject Re: pg_ctl infinite loop and memory leak
Date
Msg-id 1251859088.31412.336.camel@monkey-cat.sm.truviso.com
Whole thread Raw
In response to Re: pg_ctl infinite loop and memory leak  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_ctl infinite loop and memory leak
List 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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_ctl infinite loop and memory leak
Next
From: Tom Lane
Date:
Subject: Re: pg_ctl infinite loop and memory leak