Subject | Re: [firebird-support] UDF to provide Hexadecimal string |
---|---|
Author | Jason Dodson |
Post date | 2005-08-04T16:40:35Z |
Is that not what the FREE_IT is for in the external function declaration?
Jason
Ann W. Harrison wrote:
Jason
Ann W. Harrison wrote:
> Jason Dodson wrote:
>
>>char *IntToHex(long DecNumber)
>>{
>> char *HexNumber[10] = NULL;
>> // 2^32 == 100000000 in hex
>> HexNumber = malloc(10); //For C people
>> HexNumber = new char[10]; //For C++ people
>
> ....
> Unh, maybe I haven't had enough sleep, but that looks like an memory
> leak to me. How do you possibly release those bytes?
>
>
> Regards,
>
>
> Ann
>
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://firebird.sourceforge.net and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>