Free the memory allocated to each sqldata pointer and the space allocated for the SQLDA itself. Any null pointer is not freed.
void free_filled_sqlda( struct sqlda * sqlda );
This should only be called if fill_sqlda, fill_sqlda_ex, or fill_s_sqlda was used to allocate the sqldata fields of the SQLDA.
Calling this function causes free_sqlda to be called automatically, and so any descriptors allocated by alloc_sqlda are freed.