24.08.2017 15:07, Rudi Feijó rudi.fe...@multidadosti.com.br [firebird-support]
wrote:
> is there any problems if I just declare all UDF's with FREE IT?
Yes, server will have problems trying to free memory that wasn't allocated.
--
WBR, SD.
>You must use ib_util_malloc() to allocate memory in UDF and don't forget
>FREE_IT in declaration to avoid memory leak.
Dimitry, on a similar question, is there any problems if I just declare all
UDF's with FREE IT?
We use dozens of UDF's, but only half of them are declared as FREE IT, and I
ha
24.08.2017 12:00, Nagy Szilveszter nagy_szilvesz...@yahoo.com
[firebird-support] wrote:
> out = (char*)calloc(strlen(str), sizeof(char));
> result = (char*)calloc(j, sizeof(char));
Besides, here and there you forgot about space for terminating null char.
--
WBR, SD.
No, it has value of TRX12270
On Thursday, August 24, 2017, 12:56:09 PM GMT+3, Antônio Gomes
acgomes2...@yahoo.com.br [firebird-support]
wrote:
there no a null string?
De: "Nagy Szilveszter nagy_szilvesz...@yahoo.com [firebird-support]"
Para: Firebird-support
Enviadas: Quinta
there no a null string?
De: "Nagy Szilveszter nagy_szilvesz...@yahoo.com [firebird-support]"
Para: Firebird-support
Enviadas: Quinta-feira, 24 de Agosto de 2017 6:41
Assunto: [firebird-support] UDF or/and maybe Charset problem
Hi,
i have an UDF function that runs perfectly on
24.08.2017 11:37, Nagy Szilveszter nagy_szilvesz...@yahoo.com
[firebird-support] wrote:
> result = (char*)calloc(j, sizeof(char));
You must use ib_util_malloc() to allocate memory in UDF and don't forget
FREE_IT in
declaration to avoid memory leak.
--
WBR, SD.
---