Re: [patch] fix dblink security hole - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [patch] fix dblink security hole
Date
Msg-id 21421.1222048386@sss.pgh.pa.us
Whole thread Raw
In response to Re: [patch] fix dblink security hole  (Joe Conway <mail@joeconway.com>)
Responses Re: [patch] fix dblink security hole  (Joe Conway <mail@joeconway.com>)
List pgsql-hackers
Joe Conway <mail@joeconway.com> writes:
> If the return value is NULL, use errmsg if you'd like. I'd guess in most 
> instances you don't even need to bother freeing errmsg as it is in a 
> limited life memory context.

Uh, you're confusing the backend environment with libpq's much more
spartan lifestyle.  errmsg will be malloc'd and it will *not* go away
unless the caller free()s it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: [patch] fix dblink security hole
Next
From: Joe Conway
Date:
Subject: Re: [patch] fix dblink security hole