Re: libpq: fix unlikely memory leak

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: libpq: fix unlikely memory leak
Date: 2005-06-30 02:00:25
Message-ID: 42C35239.7060703@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane wrote:
> Since both allocations are only transient within this routine, there's
> a simpler more effective solution, which is to only do one malloc in
> the first place

Yeah, true. Attached is a revised patch -- committed to HEAD.

-Neil

Attachment Content-Type Size
libpq_send_passwd_mem_leak-2.patch text/x-patch 1.8 KB

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Berkus 2005-06-30 02:23:34 Re: Open items
Previous Message Alvaro Herrera 2005-06-29 23:34:56 Autovacuum integration patch