Subject Re: [firebird-support] UDF to provide Hexadecimal string
Author Ann W. Harrison
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