Subject | Re: [firebird-support] UDF to provide Hexadecimal string |
---|---|
Author | Ann W. Harrison |
Post date | 2005-08-04T16:31:05Z |
Jason Dodson wrote:
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
>....
> 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