Jeff Davis <pgsql(at)j-davis(dot)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