Subject Re: Memory Problem With Select
Yes I do. Even if I did not free this this would not make a
difference to the leak I am seeing. The sqlda is allocated in my
software as your example indicates by calling mallloc/free. The larg
memory growth I am encountering is in the IBServer.exe so this is
memory allocated by the server.

Note I can make the examples do this simply by putting a loop around
the transaction.

--- In ib-support@y..., "Ignace MARTIN" <ignace.martin@s...> wrote:
> James,
> Do you correctly frees the sqlda variable after statement as
> isc_attach_database
> for (int n = 0; n < 2000; n++)
> isc_start_transaction
> isc_dsql_allocate_statement
> osqlda = (XSQLDA ISC_FAR *) malloc(XSQLDA_LENGTH(n));
> osqlda->sqln = n;
> osqlda->version = 1;
> isc_dsql_prepare
> isc_dsql_describe
> isc_dsql_execute
> while (isc_dsql_fetch)
> isc_dsql_free_statement
> free(osqlda);
> isc_commit_transaction
> isc_detach_database