String deallocation
The library does not automatically deallocate memory that you dynamically allocate. Once you no longer need the string buffer, you must ensure that you deallocate any memory that your application has dynamically allocated for multibyte-character and wide-character strings.
The DataBlade® API does provide some automatic garbage collection for memory that you allocate dynamically. When this memory is deallocated depends on the memory duration with which it was allocated. However, it is good programming practice to handle memory deallocation implicitly whenever possible. For more information about memory management with the DataBlade® API, see the Informix® DataBlade® API Programmer's Guide.