Re: [PATCHES] ldap: fix resource leak - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] ldap: fix resource leak
Date
Msg-id 9974.1162701292@sss.pgh.pa.us
Whole thread Raw
Responses Re: [PATCHES] ldap: fix resource leak  (Neil Conway <neilc@samurai.com>)
List pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> I fixed this by adding the appropriate ldap_unbind() calls in error
> control paths. An alternative would be to have a single place do the
> error handling, and jump to that via goto.

Perhaps use a PG_TRY construct?

            regards, tom lane

pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Design Considerations for New Authentication Methods
Next
From: mark@mark.mielke.cc
Date:
Subject: PostgreSQL 8.2 (from CVS devel) first impressions