esql_model: extended destructor to cleanup allocated strings.