Tom I Take it I should not free before the function returns ?

From: "Doherty EMAIL ACCOUNT" <jmdpg(at)jdoherty(dot)net>
To: "pgsql-interface" <pgsql-interfaces(at)postgresql(dot)org(dot)>
Subject: Tom I Take it I should not free before the function returns ?
Date: 2006-11-21 17:58:49
Message-ID: 004a01c70d96$b3e87540$c801a8c0@jmdbox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

James M Doherty" <jim(at)jdoherty(dot)net> writes:
> pfree(myRDate);
> PG_RETURN_TEXT_P(myRDate);

Egad.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

Browse pgsql-interfaces by date

  From Date Subject
Next Message Doherty EMAIL ACCOUNT 2006-11-21 18:04:35 Fw: SEGFAULT ON EXTENDED FUNCTION
Previous Message Tom Lane 2006-11-21 16:21:54 Re: C LIBRARY EXTENSION SEGFAULT