When using an sqlda structure in Informix ESQL/C, what is the
proper way to free the memory after use?
We are using a DESCRIBE statement, which causes Informix to
create an sqlda struct with a pointer to an sqlvar_struct array.
We allocate a buffer and assign sqldata to point to it; after
use, we free the buffer.
Does Informix free the rest of the data, such as the sqlind,
sqlname, etc., or should we? Does Informix free the sqlvar_struct
array? The sqlda? What is the right way to prevent a memory leak?
--
Vic Schoenberg
vic@csn.org