esql_model: Free allocated data on destruction.